using FreeSql.DataAnnotations; using Store.Contracts.User.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Store.Contracts.User.Entitys; [Table(Name = "wxxd.oem_markup_rule")] public class OEMMarkupRuleEntity { /// /// 自增主键 /// [Column(Name = "id", IsPrimary = true, IsIdentity = true)] public long Id { get; set; } /// /// 设置者(上级),也是该笔加价的收益方 /// [Column(Name = "setter_oem_id")] public string SetterOemId { get; set; } /// /// 目标类型 1=下级OEM 2=用户 /// [Column(Name = "target_type", MapType = typeof(sbyte))] public OEMMarkupTargetType TargetType { get; set; } /// /// 目标ID:type=1 是oem_id, type=2 是user_name /// [Column(Name = "target_id")] public string TargetId { get; set; } /// /// 交易类型 /// 20 快递 /// 26 退货快递 /// 16 礼物单 /// 55 同步物流 /// [Column(Name = "payment_type", MapType = typeof(sbyte))] public UserPaymentTypes PaymentType { get; set; } /// /// 加价金额,单位:分 /// [Column(Name = "markup")] public int Markup { get; set; } /// /// 更新时间 /// [Column(Name = "updated_at")] public DateTime UpdatedAt { get; set; } }