Files
Dhananjaya99 bffc9b1686 first commit
2026-09-28 11:44:26 +05:30

23 lines
641 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Fitness_core_BE.Models
{
public class StaffPayment
{
[Key]
public Guid Id { get; set; }
public Guid FKStaffId { get; set; }
[ForeignKey("FKStaffId")]
public virtual Staff Staff { get; set; }
public decimal Amount { get; set; }
public string? Note { get; set; }
public DateTime PaidAt { get; set; } = DateTime.UtcNow;
// The gym-owner (Client.FKUserId) or staff user who recorded this payment.
public Guid FKPaidByUserId { get; set; }
}
}