diff --git a/REMAN/NKC.Data/DbModels/MovMagModel.cs b/REMAN/NKC.Data/DbModels/MovMagModel.cs new file mode 100644 index 0000000..44b9b9b --- /dev/null +++ b/REMAN/NKC.Data/DbModels/MovMagModel.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace NKC.Data.DbModels +{ + // + // This is here so CodeMaid doesn't reorganize this document + // + //[Index(nameof(Installazione), nameof(Active), nameof(DiskStatus))] + [Table("MovMag")] + public partial class MovMagModel + { + /// + /// Primary Key AUTO + /// + [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] + public int MovID { get; set; } + + /// + /// DateTime record + /// + public DateTime DtRec { get; set; } = DateTime.Now; + + /// + /// Ext ref for Remnants + /// + public int RemnID { get; set; } + + /// + /// Qty recorded (delta +/-) + /// + public int QtyRec { get; set; } = 0; + + /// + /// Navigation property to Remnant + /// + [ForeignKey("RemnID")] + public virtual RemnantsModel RemnantNav { get; set; } + + } +}