using DS.WMS.Core.Fee.Entity;
using SqlSugar;
namespace DS.WMS.Core.Application.Entity
{
///
/// 费用代码与发票申请明细关系
///
[SugarTable("application_detail_relation", TableDescription = "发票明细与费用明细关系")]
public class ApplicationDetailRelation
{
///
/// 费用明细ID
///
[SugarColumn(IsPrimaryKey = true)]
public long DetailId { get; set; }
///
/// 发票明细
///
[Navigate(NavigateType.OneToOne, nameof(DetailId))]
public ApplicationDetail? Detail { get; set; }
///
/// 发票明细ID
///
[SugarColumn(IsPrimaryKey = true)]
public long InvoiceDetailId { get; set; }
///
/// 发票明细
///
[Navigate(NavigateType.OneToOne, nameof(InvoiceDetailId))]
public InvoiceDetail? InvoiceDetail { get; set; }
/////
///// 费用代码ID
/////
//public long? FeeId { get; set; }
/////
///// 费用代码
/////
//[Navigate(NavigateType.OneToOne, nameof(FeeId))]
//public FeeCode? FeeCode { get; set; }
///
/// 发票申请/发票ID
///
[SugarColumn(ColumnDescription = "发票申请/发票ID", IsNullable = false)]
public long InvoiceId { get; set; }
///
/// 原始发票明细名称
///
[SugarColumn(ColumnDescription = "原始发票明细名称", IsNullable = false, Length = 50)]
public string OriginalName { get; set; }
}
}