You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.0 KiB
69 lines
2.0 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Volo.Abp.Domain.Entities;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
namespace Shentun.Peis.Models
|
|
{
|
|
/// <summary>
|
|
/// 退费主档
|
|
/// </summary>
|
|
[Table("charge_back")]
|
|
public class ChargeBack : AuditedEntity<Guid>, IHasConcurrencyStamp
|
|
{
|
|
public ChargeBack()
|
|
{
|
|
ChargeBackPays = new HashSet<ChargeBackPay>();
|
|
ChargeBackAsbitems=new HashSet<ChargeBackAsbitem>();
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 收据号
|
|
/// </summary>
|
|
[Column("charge_id")]
|
|
public Guid ChargeId { get; set; }
|
|
/// <summary>
|
|
/// 结账ID
|
|
/// </summary>
|
|
[Column("settle_account_id")]
|
|
public Guid? SettleAccountId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 结账时间
|
|
/// </summary>
|
|
[Column("settle_time")]
|
|
public DateTime? SettleTime { get; set; }
|
|
|
|
///// <summary>
|
|
///// 退费人
|
|
///// </summary>
|
|
//[Column("creator_id")]
|
|
//public Guid CreatorId { get; set; }
|
|
///// <summary>
|
|
///// 退费日期
|
|
///// </summary>
|
|
//[Column("creation_time", TypeName = "timestamp without time zone")]
|
|
//public DateTime CreationTime { get; set; }
|
|
|
|
[Column("concurrency_stamp")]
|
|
public string ConcurrencyStamp { get; set; }
|
|
|
|
[ForeignKey(nameof(ChargeId))]
|
|
[InverseProperty("ChargeBacks")]
|
|
public virtual Charge Charge { get; set; } = null!;
|
|
[InverseProperty(nameof(ChargeBackPay.ChargeBack))]
|
|
public virtual ICollection<ChargeBackPay> ChargeBackPays { get; set; }
|
|
|
|
[InverseProperty(nameof(ChargeBackAsbitem.ChargeBack))]
|
|
public virtual ICollection<ChargeBackAsbitem> ChargeBackAsbitems { get; set; }
|
|
|
|
//public override object[] GetKeys()
|
|
//{
|
|
// return new object[] { ChargeBackId };
|
|
//}
|
|
}
|
|
}
|