using SqlSugar;
namespace YBDevice.Entity
{
///
/// 设备订单,适用于扫码关注流程
///
[SugarTable("YB_Order", TableDescription = "设备订单,适用于扫码关注流程", IsDisabledUpdateAll = false, IsDisabledDelete = true)]
public class YB_Order
{
///
///
///
[SugarColumn(IsPrimaryKey = true)]
public System.Guid Id { get; set; }
///
/// 订单名称
///
[SugarColumn(ColumnDescription = "订单名称",ColumnDataType ="nvarchar(50)")]
public System.String Name { get; set; }
///
/// 内容类型,1-公众号,2-链接,3-小程序
///
[SugarColumn(ColumnDescription = "内容类型,1-公众号,2-链接,3-小程序")]
public OrderType Type { get; set; }
///
/// 订单类型,1-设备管理,2-用户测量
///
[SugarColumn(ColumnDescription = "订单类型,1-设备管理,2-用户测量",DefaultValue ="2",IsNullable =true)]
public OrderBindType OrderType { get; set; }
///
/// 链接或者公众号appid
///
[SugarColumn(ColumnDescription = "链接或者公众号appid", ColumnDataType = "varchar(200)")]
public System.String Url { get; set; }
///
/// 当为小程序时的跳转页面地址
///
[SugarColumn(ColumnDescription = "当为小程序时的跳转页面地址", ColumnDataType = "varchar(100)")]
public System.String Page { get; set; }
///
/// 实时关注/点击数
///
[SugarColumn(ColumnDescription = "实时关注/点击数")]
public System.Int32 RealCount { get; set; }
///
/// 累计展现次数
///
[SugarColumn(ColumnDescription = "累计展现次数")]
public System.Int32 ShowCount { get; set; }
///
/// 总数,为0则无上限
///
[SugarColumn(ColumnDescription = "总数,为0则无上限")]
public System.Int32 TotalCount { get; set; }
///
/// 今日展现数量
///
[SugarColumn(ColumnDescription = "今日展现数量")]
public System.Int32 DayCount { get; set; }
///
/// 今日实际关注/点击数
///
[SugarColumn(ColumnDescription = "今日实际关注/点击数")]
public System.Int32 DayRealCount { get; set; }
///
/// 日上限,为0则没有上限
///
[SugarColumn(ColumnDescription = "日上限,为0则没有上限")]
public System.Int32 DayLimit { get; set; }
///
/// 开始时间,为空则马上开始
///
[SugarColumn(ColumnDescription = "开始时间,为空则马上开始", IsNullable = true)]
public System.DateTime? StartTime { get; set; }
///
/// 结束时间,为空则不会结束
///
[SugarColumn(ColumnDescription = "结束时间,为空则不会结束", IsNullable = true)]
public System.DateTime? EndTime { get; set; }
///
/// 订单状态,1-正常,2-暂停,3-已完成,4-已取消
///
[SugarColumn(ColumnDescription = "订单状态,1-正常,2-暂停,3-已完成,4-已取消")]
public OrderStatus Status { get; set; }
///
/// 状态备注
///
[SugarColumn(ColumnDescription = "状态备注")]
public System.String StatusRemark { get; set; }
///
/// 优先级,数字越大越先被取到
///
[SugarColumn(ColumnDescription = "优先级,数字越大越先被取到")]
public System.Int32 Priority { get; set; }
///
/// 商户ID
///
[SugarColumn(ColumnDescription = "商户ID")]
public System.Int32 BusinessId { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnDescription = "创建时间")]
public System.DateTime CreateTime { get; set; }
}
}