Fix required fields in media.

This commit is contained in:
2020-08-08 02:48:01 +01:00
parent 750e946cbc
commit fc9cc19056
4 changed files with 6875 additions and 2 deletions

View File

@@ -25,13 +25,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Aaru.CommonTypes;
namespace Marechai.Database.Models
{
public class Media : BaseModel<ulong>
{
public string Title { get; set; }
[Required]
public string Title { get; set; }
public ushort? Sequence { get; set; }
public ushort? LastSequence { get; set; }
public MediaType Type { get; set; }