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
{
///
/// 退费主档
///
[Table("charge_back")]
public class ChargeBack : AuditedEntity, IHasConcurrencyStamp
{
public ChargeBack()
{
ChargeBackPays = new HashSet();
ChargeBackAsbitems=new HashSet();
}
///
/// 收据号
///
[Column("charge_id")]
public Guid ChargeId { get; set; }
///
/// 结账ID
///
[Column("settle_account_id")]
public Guid? SettleAccountId { get; set; }
///
/// 结账时间
///
[Column("settle_time")]
public DateTime? SettleTime { get; set; }
/////
///// 退费人
/////
//[Column("creator_id")]
//public Guid CreatorId { get; set; }
/////
///// 退费日期
/////
//[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 ChargeBackPays { get; set; }
[InverseProperty(nameof(ChargeBackAsbitem.ChargeBack))]
public virtual ICollection ChargeBackAsbitems { get; set; }
//public override object[] GetKeys()
//{
// return new object[] { ChargeBackId };
//}
}
}