Update struttura codifica eventi + seed dei relativi dati
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.MONO.Data.DbModels
|
||||
{
|
||||
/// <summary>
|
||||
/// Tabella Codifica Eventi
|
||||
/// </summary>
|
||||
[Table("Event")]
|
||||
public class EventModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// UID, da gestire
|
||||
/// </summary>
|
||||
[Key]
|
||||
public string CodEvent { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Descrizione evento
|
||||
/// </summary>
|
||||
[MaxLength(250)]
|
||||
public string Description { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Indica se un evento sia "user driven" (soft) oppure generato dalla macchina (HW)
|
||||
/// </summary>
|
||||
public bool IsUser { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Indica se un evento sia attivo (quindi selezionabile da ute te se NON HW)
|
||||
/// </summary>
|
||||
public bool Active { get; set; } = true;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user