-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathProductPriceHistory.cs
More file actions
36 lines (25 loc) · 902 Bytes
/
ProductPriceHistory.cs
File metadata and controls
36 lines (25 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.ComponentModel.DataAnnotations.Schema;
using SimplCommerce.Infrastructure.Models;
using SimplCommerce.Module.Core.Models;
namespace SimplCommerce.Module.Catalog.Models
{
public class ProductPriceHistory : EntityBase
{
public ProductPriceHistory()
{
CreatedOn = DateTimeOffset.UtcNow;
}
public Product Product { get; set; }
public long CreatedById { get; set; }
public User CreatedBy { get; set; }
public DateTimeOffset CreatedOn { get; set; }
public decimal? Price { get; set; }
public decimal? OldPrice { get; set; }
public decimal? SpecialPrice { get; set; }
public DateTimeOffset? SpecialPriceStart { get; set; }
public DateTimeOffset? SpecialPriceEnd { get; set; }
[NotMapped]
public bool IsPriceChange { get; set; }
}
}