You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
3.0 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using Newtonsoft.Json;
using NPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace POSV.Entity.Pormotion
{
/// <summary>
/// 门店优惠券
/// </summary>
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
[TableName("pos_store_coupon")]
[PrimaryKey(new string[] { "Id" }, AutoIncrement = false)]
public class StoreCoupon : BaseEntity
{
public StoreCoupon()
{
}
/// <summary>
/// 租户ID
/// </summary>
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/// <summary>
/// 优惠券名称
/// </summary>
[JsonProperty(PropertyName = "name")]
[Column("name")]
public string Name { get; set; }
/// <summary>
/// 开始日期
/// </summary>
[JsonProperty(PropertyName = "startDate")]
[Column("startDate")]
public string StartDate { get; set; }
/// <summary>
/// 结束日期
/// </summary>
[JsonProperty(PropertyName = "endDate")]
[Column("endDate")]
public string EndDate { get; set; }
/// <summary>
/// 开始时间
/// </summary>
[JsonProperty(PropertyName = "startTime")]
[Column("startTime")]
public string StartTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
[JsonProperty(PropertyName = "endTime")]
[Column("endTime")]
public string EndTime { get; set; }
/// <summary>
/// 星期
/// </summary>
[JsonProperty(PropertyName = "weekDays")]
[Column("weekDays")]
public string WeekDays { get; set; }
/// <summary>
/// 月频
/// </summary>
[JsonProperty(PropertyName = "validMonth")]
[Column("validMonth")]
public string ValidMonth { get; set; }
/// <summary>
/// 备注说明
/// </summary>
[JsonProperty(PropertyName = "description")]
[Column("description")]
public string Description { get; set; }
/// <summary>
/// 类型(0-满减;1-阶梯满减;)
/// </summary>
[JsonProperty(PropertyName = "type")]
[Column("type")]
public int Type { get; set; }
/// <summary>
/// 使用规则
/// </summary>
[JsonProperty(PropertyName = "rule")]
[Column("rule")]
public string Rule { get; set; }
/// <summary>
/// 状态(0-待审核1-待投放2-已投放3-已暂停4-已下架)
/// </summary>
[JsonProperty(PropertyName = "status")]
[Column("status")]
public int Status { get; set; }
/// <summary>
/// 是否核销(0-否1-是)
/// </summary>
[JsonProperty(PropertyName = "voucherFlag")]
[Column("voucherFlag")]
public int VoucherFlag { get; set; }
}
}