19 lines
634 B
C#
19 lines
634 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class CustomerInvoiceItem
|
|
{
|
|
[Key]
|
|
public Guid CustomerInvoiceItemId { get; set; }
|
|
public Guid FKCustomerInvoiceId { get; set; }
|
|
[ForeignKey("FKCustomerInvoiceId")]
|
|
public virtual CustomerInvoice CustomerInvoice { get; set; }
|
|
public string? ItemName { get; set; }
|
|
public string? ItemDescription { get; set; }
|
|
public decimal ItemPrice { get; set; }
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|
|
}
|