
using dodohold.core;

namespace molilian.core
{

    [Table("tk_coupon_logs")]

    public class UnionCouponDTO : BaseUnionCouponDTO;

    [Table("tk_coupon_logs_test")]
    public class TestUnionCouponDTO : BaseUnionCouponDTO;


    [Table("tk_coupon_logs_success")]
    public class SuccessUnionCouponDTO : BaseUnionCouponDTO;


    public class BaseUnionCouponDTO
    {
        [Key]
        public long id { get; set; }
        public TkChannelEnum channel { get; set; }
        public int accountId { get; set; } = 0;
        public string accountName { get; set; } = string.Empty;
        public string rawContent { get; set; } = string.Empty;
        public string rawContent2 { get; set; } = string.Empty;
        public bool success { get; set; } = false;
        public string reason { get; set; } = string.Empty;
        public string message { get; set; } = string.Empty;
        public string deeplink_url { get; set; } = string.Empty;
        public int elapsedTime { get; set; } = 0;
        public string ip { get; set; } = string.Empty;
        public string oaid { get; set; } = string.Empty;
        public decimal couponAmount { get; set; } = 0.00M;
        public string itemId { get; set; } = string.Empty;
        public string pic { get; set; } = string.Empty;
        public DateTime create_time { get; set; } = DateTime.Now;
        public string couponEffectiveStartTime { get; set; } = string.Empty;
        public string couponEffectiveEndTime { get; set; } = string.Empty;
        public string end_point { get; set; } = string.Empty;
    }
}
