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

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