using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Shared.DTOs; 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 } }