Files
2024-01-16 09:38:16 +01:00

70 lines
1.8 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MagMan.Data.Admin.DbModels
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
[Table("CustomerList")]
public partial class CustomerModel
{
public CustomerModel()
{
MachineNav = new HashSet<MachineModel>();
}
/// <summary>
/// Primary Key AUTO
/// </summary>
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int CustomerID { get; set; }
/// <summary>
/// Nome
/// </summary>
public string Name { get; set; } = "";
/// <summary>
/// Note/Descrizione
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// Check attivo
/// </summary>
public bool IsActive { get; set; } = false;
/// <summary>
/// DateTime Attivazione
/// </summary>
public DateTime DtActivation { get; set; } = DateTime.Today;
/// <summary>
/// Token autorizzazione x comunicazione REST
/// </summary>
public string RestToken { get; set; } = "";
/// <summary>
/// Chiave principale (primo impianto) per creazione DB
/// </summary>
public int MainKey { get; set; } = 0;
/// <summary>
/// Boolean di creazione DB
/// </summary>
public bool HasDb { get; set; } = false;
[NotMapped]
public bool HasChildren { get; set; } = false;
[NotMapped]
public virtual ICollection<MachineModel> MachineNav { get; set; }
}
}