using PoJun.Dapper;
using System;
using System.Collections.Generic;
using System.Text;

namespace ASHermed.SinoInterface.Api.ContractModel.Coupon.Entity
{
    public class Online_Couponlogs
    {

        [Column("`Id`", ColumnKey.Primary, true)]
        public int Id { get; set; }
        /// <summary>
        /// APP用户ID
        /// </summary>
        public int PubUserId { get; set; }
        /// <summary>
        /// 患者ID
        /// </summary>
        public int PatId { get; set; }
        /// <summary>
        /// 优惠券ID
        /// </summary>
        public int CouponId { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 原订单金额
        /// </summary>
        public decimal OrderOldMoney { get; set; }
        /// <summary>
        /// 优惠券金额
        /// </summary>
        public decimal CouponMoney { get; set; }
        /// <summary>
        /// 抵扣优惠券之后的订单金额
        /// </summary>
        public decimal OrderNewMoney { get; set; }
        /// <summary>
        /// 使用时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 日志状态: 默认为0，支付回调成功后为1
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 患者优惠券ID
        /// </summary>
        public int CouponPubUserId { get; set; }
        public bool IsDelete { get; set; }
    }
}
