first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Fitness_core_BE.Models
{
public class CustomerCards
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid JobId { get; set; }
// Tenant-bucket entity: this FK holds a TenantCustomerLinkId (not the central
// Customer.CusId directly) -- see Models/TenantCustomerLink.cs.
public Guid? FK_CustomerId { get; set; }
[ForeignKey("FK_CustomerId")]
public virtual TenantCustomerLink? TenantCustomerLink { get; set; }
public Guid? FK_ClientId { get; set; }
[ForeignKey("FK_ClientId")]
public virtual Client? Client { get; set; }
public string? WalletId { get; set; }
public string? CardId { get; set; }
public string? CardNumber { get; set; }
public string? CardType { get; set; }
public string? CardDate { get; set; }
public bool IsActive { get; set; } = false;
public bool IsPrimary { get; set; } = false;
public int Priority { get; set; } = 0;
public string? NickName { get; set; }
/// <summary>Member's explicit opt-in to store this card for auto-deduct charges.</summary>
public bool ConsentGiven { get; set; } = false;
public DateTime? ConsentAt { get; set; }
}
}