first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user