Fix required fields in dump.

This commit is contained in:
2020-08-08 02:26:54 +01:00
parent 30e0408edb
commit f16ca6ec4d
4 changed files with 6929 additions and 14 deletions

View File

@@ -25,19 +25,25 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Marechai.Database.Models
{
public class Dump : BaseModel<ulong>
{
public string Dumper { get; set; }
public string UserId { get; set; }
public string DumpingGroup { get; set; }
public DateTime? DumpDate { get; set; }
public virtual Media Media { get; set; }
public virtual MediaDump MediaDump { get; set; }
[Required]
public string Dumper { get; set; }
public string UserId { get; set; }
public string DumpingGroup { get; set; }
public DateTime? DumpDate { get; set; }
[Required]
public virtual Media Media { get; set; }
[Required]
public virtual MediaDump MediaDump { get; set; }
public virtual ApplicationUser User { get; set; }
public virtual ICollection<DumpHardware> DumpHardware { get; set; }
public ulong MediaId { get; set; }
public ulong MediaDumpId { get; set; }
}
}