37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace rockfishCore.Models
|
|
{
|
|
public partial class Purchase
|
|
{
|
|
public Purchase()
|
|
{
|
|
Quantity = 1;
|
|
VendorName="ShareIT";
|
|
ExpireDate=Util.DateUtil.DateToEpoch(System.DateTime.Today.AddYears(1));
|
|
}
|
|
public long Id { get; set; }
|
|
public long CustomerId { get; set; }
|
|
public long SiteId { get; set; }
|
|
public string Name { get; set; }
|
|
public string VendorName { get; set; }
|
|
public string Email { get; set; }
|
|
public string ProductCode { get; set; }
|
|
public string SalesOrderNumber { get; set; }
|
|
public long PurchaseDate { get; set; }
|
|
public long? ExpireDate { get; set; }
|
|
public long? CancelDate { get; set; }
|
|
public string CouponCode { get; set; }
|
|
public string Notes { get; set; }
|
|
//schema v2
|
|
public bool RenewNoticeSent { get; set; }
|
|
|
|
//raven
|
|
public int Quantity { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public virtual Customer Customer { get; set; }
|
|
public virtual Site Site { get; set; }
|
|
}
|
|
}
|