first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Fitness_core_BE.Models
|
||||
{
|
||||
/// <summary>Records that a customer accepted a specific gym's specific Terms version —
|
||||
/// e.g. at QR-join time. Kept even after the gym publishes a newer version.</summary>
|
||||
public class CustomerTermsAcceptance
|
||||
{
|
||||
[Key]
|
||||
public Guid CustomerTermsAcceptanceId { get; set; }
|
||||
|
||||
// Tenant-bucket entity: this FK holds a TenantCustomerLinkId (not the central
|
||||
// Customer.CusId directly) -- see Models/TenantCustomerLink.cs.
|
||||
public Guid FKCusId { get; set; }
|
||||
[ForeignKey("FKCusId")]
|
||||
public virtual TenantCustomerLink? TenantCustomerLink { get; set; }
|
||||
|
||||
public Guid FKClientId { get; set; }
|
||||
[ForeignKey("FKClientId")]
|
||||
public virtual Client? Client { get; set; }
|
||||
|
||||
public int Version { get; set; }
|
||||
public DateTime AcceptedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user