This commit is contained in:
mmrbnjd
2024-03-30 15:10:36 +03:30
parent f4588f3426
commit a9e3afdea4
60 changed files with 1752 additions and 70 deletions

View 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
}
}