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
{
//
// This is here so CodeMaid doesn't reorganize this document
//
[Table("CustomerList")]
public partial class CustomerModel
{
public CustomerModel()
{
MachineNav = new HashSet();
}
///
/// Primary Key AUTO
///
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int CustomerID { get; set; }
///
/// Nome
///
public string Name { get; set; } = "";
///
/// Note/Descrizione
///
public string Note { get; set; } = "";
///
/// Check attivo
///
public bool IsActive { get; set; } = false;
///
/// DateTime Attivazione
///
public DateTime DtActivation { get; set; } = DateTime.Today;
///
/// Token autorizzazione x comunicazione REST
///
public string RestToken { get; set; } = "";
///
/// Chiave principale (primo impianto) per creazione DB
///
public int MainKey { get; set; } = 0;
///
/// Boolean di creazione DB
///
public bool HasDb { get; set; } = false;
[NotMapped]
public bool HasChildren { get; set; } = false;
[NotMapped]
public virtual ICollection MachineNav { get; set; }
}
}