Files
moadiran/Back/Data/Models/Customer.cs

36 lines
1.0 KiB
C#
Raw Normal View History

2024-03-30 15:10:36 +03:30
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
}
}