using New_College.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace New_College.Model.Models
{
    /// <summary>
    /// 此表用户绑定后添加和直接购买
    /// </summary>
    public class V_OrderInfo : RootEntity
    {
        /// <summary>
        /// 1支付宝支付  0微信支付
        /// </summary>
        [SugarColumn(IsNullable = true)] 
        public EnumPayType PayType { get; set; }

        /// <summary>
        /// 状态  
        /// </summary>
        public EnumOrderType Status { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 实付款
        /// </summary>
        public decimal PayPrice { get; set; }

        /// <summary>
        /// 卡Id
        /// </summary>
        [SugarColumn(IsNullable = true)] 
        public int CardId { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        [SugarColumn(IsNullable = true)] 
        public string CardNo { get; set; }

        /// <summary>
        /// 卡类型Id
        /// </summary>
        public int CardTypeId { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public int CustomerId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string out_trade_no { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(IsNullable = true)] 
        public string OrderId { get; set; }
    }
}
