using Datory.Annotations;

namespace GxPress.Entity.Order
{
    /// <summary>
    /// 会员
    /// </summary>
    [DataTable("tede_order")]
    public class Order : Datory.Entity
    {
        /// <summary>
        /// 订单号
        /// </summary>
        /// <value></value>
        [DataColumn]
        public string OrderNumber { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        /// <value></value>
        [DataColumn]
        public int UserId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        /// <value></value>
        [DataColumn]
        public string Name { get; set; }
        /// <summary>
        /// 交易流水
        /// </summary>
        /// <value></value>

        [DataColumn]
        public string BillNumber { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        /// <value></value>
        [DataColumn]
        public string Explain { get; set; }
        /// <summary>
        /// 交易价格
        /// </summary>
        /// <value></value>
        [DataColumn]

        public decimal Price { get; set; }
        /// <summary>
        /// 是否交易
        /// </summary>
        /// <value></value>

        [DataColumn]
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 是否退款
        /// </summary>
        /// <value></value>

        [DataColumn]
        public bool IsRefund { get; set; }

        /// <summary>
        /// 支付方式 1 微信 2 支付宝
        /// </summary>
        /// <value></value>
        [DataColumn]
        public int PayWay { get; set; }
        /// <summary>
        /// 1 商品付费 2会员开通
        /// </summary>
        /// <value></value>
        [DataColumn]
        public int OrderType { get; set; }
    }
}