Files
lux/Lux.Data/DbModel/PersonModel.cs
T
Samuele Locatelli 3378f68a8c - fix naming in inglese x Items
- nuovi obj roles e person
- dataseed preliminare
2025-06-18 18:14:31 +02:00

56 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
[Table("RegPerson")]
public class PersonModel
{
/// <summary>
/// ID del record
/// </summary>
[Key]
public int PersonID { get; set; }
/// <summary>
/// Ruolo assocaito da anagrafica esterna
/// </summary>
public int RoleID { get; set; }
/// <summary>
/// Denominazione se persona giuridica
/// </summary>
public string CompanyName { get; set; } = "";
/// <summary>
/// Nome
/// </summary>
public string FirstName { get; set; } = "";
/// <summary>
/// Cognome
/// </summary>
public string LastName { get; set; } = "";
/// <summary>
/// P.IVA / C.Fiscale
/// </summary>
public string VAT { get; set; } = "";
/// <summary>
/// Navigazione al ruolo
/// </summary>
[ForeignKey("RoleID")]
public virtual RoleModel RoleNav { get; set; } = null!;
}
}