d45892b279
- redis su cluster - DB su cluster - RIfatta migration x considerazione su cluster
56 lines
1.3 KiB
C#
56 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MagMan.Data.Tenant.DbModels
|
|
{
|
|
/// <summary>
|
|
/// Tabella delle singole istanze prodotte
|
|
/// </summary>
|
|
[Table("PartList")]
|
|
public class PartModel
|
|
{
|
|
[Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int PartDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Id geometrico Barra Lavorata
|
|
/// </summary>
|
|
[Column("PartId")]
|
|
public int PartId { get; set; }
|
|
|
|
/// <summary>
|
|
/// MachGroup di appartenenza
|
|
/// </summary>
|
|
[Column("MachGroupId")]
|
|
public int MachGroupId { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Proj di appartenenza
|
|
/// </summary>
|
|
public int ProjDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data Start
|
|
/// </summary>
|
|
[Column("DtStart")]
|
|
public DateTime DtStart { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data End
|
|
/// </summary>
|
|
[Column("DtEnd")]
|
|
public DateTime DtEnd { get; set; }
|
|
|
|
|
|
#if false
|
|
[ForeignKey("MachGroupId")]
|
|
public virtual MachGroupModel MachGroupNav { get; set; }
|
|
#endif
|
|
}
|
|
}
|