File size: 1,960 Bytes
fc06b79 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace ContactManagementAPI.Models
{
public class Contact
{
public int Id { get; set; }
[Required]
public string FirstName { get; set; } = string.Empty;
public string? LastName { get; set; }
public string? NickName { get; set; }
public string? Gender { get; set; }
public DateTime? DateOfBirth { get; set; }
public string? Email { get; set; }
public string? Mobile1 { get; set; }
public string? Mobile2 { get; set; }
public string? Mobile3 { get; set; }
public string? WhatsAppNumber { get; set; }
public string? PassportNumber { get; set; }
public string? PanNumber { get; set; }
public string? AadharNumber { get; set; }
public string? DrivingLicenseNumber { get; set; }
public string? VotersId { get; set; }
public string? BankAccountNumber { get; set; }
public string? BankName { get; set; }
public string? BranchName { get; set; }
public string? IfscCode { get; set; }
public string? Address { get; set; }
public string? City { get; set; }
public string? State { get; set; }
public string? PostalCode { get; set; }
public string? Country { get; set; }
public string? PhotoPath { get; set; }
public int? GroupId { get; set; }
public ContactGroup? Group { get; set; }
public string? OtherDetails { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public ICollection<ContactPhoto> Photos { get; set; } = new List<ContactPhoto>();
public ICollection<ContactDocument> Documents { get; set; } = new List<ContactDocument>();
public ICollection<ContactBankAccount> BankAccounts { get; set; } = new List<ContactBankAccount>();
}
}
|