40 lines
1003 B
C#
40 lines
1003 B
C#
using AutobusApi.Domain.Common;
|
|
using AutobusApi.Domain.Enums;
|
|
|
|
namespace AutobusApi.Domain.Entities;
|
|
|
|
public class TicketGroup : EntityBase
|
|
{
|
|
public string BuyerFirstName { get; set; } = null!;
|
|
|
|
public string BuyerLastName { get; set; } = null!;
|
|
|
|
public string BuyerPhoneNumber { get; set; } = null!;
|
|
|
|
public string BuyerEmailAddress { get; set; } = null!;
|
|
|
|
public string PassengerFirstName { get; set; } = null!;
|
|
|
|
public string PassengerLastName { get; set; } = null!;
|
|
|
|
public string PassengerPatronymic { get; set; } = null!;
|
|
|
|
public Sex PassengerSex { get; set; }
|
|
|
|
public DateOnly PassengerBirthDate { get; set; }
|
|
|
|
public DateTime PurchaseDateTimeUtc { get; set; }
|
|
|
|
public bool IsReturned { get; set; }
|
|
|
|
public int? UserId { get; set; }
|
|
|
|
public User? User { get; set; }
|
|
|
|
public int TicketDocumentId { get; set; }
|
|
|
|
public TicketDocument TicketDocument { get; set; } = null!;
|
|
|
|
public ICollection<Ticket> Tickets { get; set; } = null!;
|
|
}
|