....
This commit is contained in:
35
Back/Data/Models/Customer.cs
Normal file
35
Back/Data/Models/Customer.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Back.Common.Enums;
|
||||
namespace Back.Data.Models
|
||||
{
|
||||
|
||||
public class Customer
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public CustomerType CustomerType { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public string? EconomicCode { get; set; }
|
||||
public string? Phone { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Address { get; set; }
|
||||
public string? Info { get; set; }
|
||||
public int CompanyID { get; set; }
|
||||
[MaxLength(10)]
|
||||
public string? ZipCode { get; set; }
|
||||
[MaxLength(10)]
|
||||
public string? BranchID { get; set; }
|
||||
[MaxLength(14)]
|
||||
public string? MeliCode { get; set; }
|
||||
[MaxLength(9)]
|
||||
public string? PassportNumber { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
|
||||
#region Navigation
|
||||
|
||||
[ForeignKey("CompanyID")]
|
||||
public virtual Company Company { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user