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("MachineList")]
public partial class MachineModel
{
///
/// Primary Key AUTO
///
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int MachineID { get; set; }
///
/// Ext ref Customers
///
public int CustomerID { get; set; } = 0;
///
/// 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;
///
/// Chiave principale (impianto) associata
///
public int MainKey { get; set; } = 0;
///
/// Navigation property to Customer
///
[ForeignKey("CustomerID")]
public virtual CustomerModel CustomerNav { get; set; } = null!;
}
}