using FreeSql.DataAnnotations;
using Newtonsoft.Json;
using System;
namespace BBWY.Server.Model.Db
{
///
/// 采购单表
///
[Table(Name = "purchaseorderv2", DisableSyncStructure = true)]
public partial class PurchaseOrderV2
{
///
/// 采购单号
///
[Column(StringLength = 100, IsPrimary = true, IsNullable = false)]
public string Id { get; set; }
///
/// 完成时间
///
[Column(DbType = "datetime")]
public DateTime? CompletionTime { get; set; }
///
/// 收货详细地址
///
public string ConsigneeAddress { get; set; }
///
/// 收货市
///
[Column(StringLength = 30)]
public string ConsigneeCity { get; set; }
///
/// 收货联系人名称
///
[Column(StringLength = 50)]
public string ConsigneeContactName { get; set; }
///
/// 收货区
///
[Column(StringLength = 30)]
public string ConsigneeCounty { get; set; }
///
/// 收货联系人电话
///
[Column(StringLength = 50)]
public string ConsigneeMobile { get; set; }
///
/// 收货省
///
[Column(StringLength = 30)]
public string ConsigneeProvince { get; set; }
///
/// 收货镇
///
[Column(StringLength = 30)]
public string ConsigneeTown { get; set; }
///
/// 打包耗材费
///
[Column(DbType = "decimal(18,2)")]
public decimal? ConsumableAmount { get; set; } = 0.00M;
///
/// 创建时间
///
[Column(DbType = "datetime")]
public DateTime? CreateTime { get; set; }
///
/// 快递公司
///
[Column(StringLength = 100)]
public string ExpressName { get; set; }
///
/// 头程运费
///
[Column(DbType = "decimal(18,2)")]
public decimal? FirstFreight { get; set; } = 0.00M;
///
/// 入仓费
///
[Column(DbType = "decimal(18,2)")]
public decimal? InStorageAmount { get; set; } = 0.00M;
///
/// 是否转入库存
///
public bool? IsConvertToStock { get; set; } = false;
///
/// 是否订阅快递100
///
public bool? IsSubscribeKuaiDi100 { get; set; } = false;
///
/// 采购单状态(待付款=0,待发货=1,待收货=2,待质检=3,待打包=4,待结算=5,已完成=6)
///
public int? OrderState { get; set; }
///
/// 支付时间
///
[Column(DbType = "datetime")]
public DateTime? PayTime { get; set; }
///
/// 采购货款
///
[Column(DbType = "decimal(18,2)")]
public decimal? ProductAmount { get; set; } = 0.00M;
///
/// 采购账号Id
///
public long? PurchaseAccountId { get; set; }
///
/// 采购金额(采购货款+采购运费)
///
[Column(DbType = "decimal(18,2)")]
public decimal? PurchaseAmount { get; set; } = 0.00M;
///
/// 采购运费
///
[Column(DbType = "decimal(18,2)")]
public decimal? PurchaseFreight { get; set; } = 0.00M;
///
/// 采购平台
///
public int? PurchasePlatform { get; set; }
///
/// 商家Id
///
[Column(StringLength = 20)]
public string PurchaserId { get; set; }
///
/// 商家名称
///
[Column(StringLength = 100)]
public string PurchaserName { get; set; }
///
/// 质检费
///
[Column(DbType = "decimal(18,2)")]
public decimal? QualityInspectionAmount { get; set; } = 0.00M;
///
/// 备注信息
///
public string Remark { get; set; }
///
/// 店铺Id
///
public string ShopId { get; set; }
///
/// 签收时间
///
[Column(DbType = "datetime")]
public DateTime? SignTime { get; set; }
///
/// 快递单号
///
[Column(StringLength = 100)]
public string WaybillNo { get; set; }
///
/// 采购方式(线上=0, 线下=1)
///
[Column(MapType = typeof(int))]
public Enums.PurchaseMethod PurchaseMethod { get; set; }
}
}