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
+31
View File
@@ -0,0 +1,31 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Fitness_core_BE.Models
{
public class ClientInvoice
{
[Key]
public Guid ClientInvoiceId { get; set; }
public Guid FKClientSubscriptionId { get; set; }
[ForeignKey("FKClientSubscriptionId")]
public virtual ClientSubscription ClientSubscription { get; set; }
public Guid FKUserId { get; set; }
[ForeignKey("FKUserId")]
public virtual User User { get; set; }
public int FKClientCardId { get; set; }
[ForeignKey("FKClientCardId")]
public virtual ClientCard ClientCard { get; set; }
public decimal Amount { get; set; }
// "Pending" | "Partial" | "Paid"
public string Status { get; set; } = "Pending";
public decimal PaidAmount { get; set; } = 0;
public DateTime ClientInvoiceDate { get; set; } = DateTime.UtcNow;
public virtual ICollection<ClientInvoiceItem> Items { get; set; } = new List<ClientInvoiceItem>();
}
}