using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Sugar.Enties
{
    /// <summary>
    /// 订单表
    /// </summary>
    [SugarTable("Order")]
    public class Order
    {
        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(IsPrimaryKey =true)]
        public string OrderNo { get; set; }
        /// <summary>
        /// 缴费表fdc_pm_fare_b主键
        /// </summary>
        public string Farerowid { get; set; }
        /// <summary>
        /// 已缴费表fdc_pm_revfare主键
        /// </summary>
        public string Revfarecode { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 业主名
        /// </summary>
        public string Ownername { get; set; }
        /// <summary>
        /// 房屋名
        /// </summary>
        public string Hname { get; set; }
        /// <summary>
        /// 状态 0：未支付 1：已支付  2：支付失败
        /// </summary>
        [SugarColumn(DefaultValue ="0")]
        public int Status { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        [SugarColumn(IsOnlyIgnoreInsert =true)]
        public DateTime AddTime { get; set; }
    }
}
