Add ContactEmail, ContactPhone, etc...
This commit is contained in:
parent
88535c9bb7
commit
e83dfcc8ab
|
|
@ -378,6 +378,8 @@ namespace TIAM.Database.Test
|
||||||
ToAddress = toAddress,
|
ToAddress = toAddress,
|
||||||
PassengerCount = 3,
|
PassengerCount = 3,
|
||||||
Price = 20000,
|
Price = 20000,
|
||||||
|
ContactEmail = "xyztest@gmail.hu",
|
||||||
|
ContactPhone = "+3671542771",
|
||||||
TransferStatusType = TransferStatusType.OrderConfirmed,
|
TransferStatusType = TransferStatusType.OrderConfirmed,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
namespace TIAM.Entities.Products;
|
namespace TIAM.Entities.Products;
|
||||||
|
|
||||||
public interface IEmailMessageForeignKey<T>
|
public interface IProductForeignKey<T>
|
||||||
{
|
{
|
||||||
public T ProductId { get; set; }
|
public T ProductId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface IProductForeignKey : IEmailMessageForeignKey<Guid>
|
public interface IProductForeignKey : IProductForeignKey<Guid>
|
||||||
{ }
|
{ }
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ using TIAM.Entities.Users;
|
||||||
namespace TIAM.Entities.Transfers;
|
namespace TIAM.Entities.Transfers;
|
||||||
|
|
||||||
[Table(nameof(Transfer))]
|
[Table(nameof(Transfer))]
|
||||||
public class Transfer: IEntityGuid, ITimeStampInfo, IProductForeignKey, IUserForeignKey
|
public class Transfer: IEntityGuid, ITimeStampInfo, IProductForeignKey<Guid?>, IUserForeignKey
|
||||||
{
|
{
|
||||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
|
|
@ -19,7 +19,7 @@ public class Transfer: IEntityGuid, ITimeStampInfo, IProductForeignKey, IUserFor
|
||||||
public int OrderId { get; set; }
|
public int OrderId { get; set; }
|
||||||
|
|
||||||
public Guid UserId { get; set; }
|
public Guid UserId { get; set; }
|
||||||
public Guid ProductId { get; set; }
|
public Guid? ProductId { get; set; }
|
||||||
//public Guid? UserProductMappingId { get; set; }
|
//public Guid? UserProductMappingId { get; set; }
|
||||||
//public Guid? UserProductToCarId { get; set; }
|
//public Guid? UserProductToCarId { get; set; }
|
||||||
|
|
||||||
|
|
@ -37,6 +37,10 @@ public class Transfer: IEntityGuid, ITimeStampInfo, IProductForeignKey, IUserFor
|
||||||
[MaxLength(50)] public string? FlightNumber { get; set; }
|
[MaxLength(50)] public string? FlightNumber { get; set; }
|
||||||
[MaxLength(200)] public string FromAddress { get; set; }
|
[MaxLength(200)] public string FromAddress { get; set; }
|
||||||
[MaxLength(200)] public string? ToAddress { get; set; }
|
[MaxLength(200)] public string? ToAddress { get; set; }
|
||||||
|
|
||||||
|
public string ContactEmail {get;set; }
|
||||||
|
public string ContactPhone {get;set; }
|
||||||
|
|
||||||
[MaxLength(250)] public string? Comment { get; set; }
|
[MaxLength(250)] public string? Comment { get; set; }
|
||||||
|
|
||||||
//[Column("ReferralProductId")]
|
//[Column("ReferralProductId")]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue