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
+24
View File
@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Fitness_core_BE.Models
{
/// <summary>A gym's own Terms &amp; Conditions, authored in the client portal. Only one row per
/// (ClientId, IsActive=true) at a time — publishing a new version deactivates the old one so
/// CustomerTermsAcceptance rows keep pointing at the exact version they accepted.</summary>
public class ClientTerms
{
[Key]
public Guid ClientTermsId { get; set; }
public Guid FKClientId { get; set; }
[ForeignKey("FKClientId")]
public virtual Client? Client { get; set; }
public int Version { get; set; } = 1;
public string Content { get; set; } = string.Empty;
public bool IsActive { get; set; } = true;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
}