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

3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using Microsoft.EntityFrameworkCore;
  6. using Volo.Abp.Domain.Entities;
  7. using Volo.Abp.Domain.Entities.Auditing;
  8. namespace Shentun.Peis.Models
  9. {
  10. /// <summary>
  11. /// 退费主档
  12. /// </summary>
  13. [Table("charge_back")]
  14. public class ChargeBack : AuditedEntity<Guid>, IHasConcurrencyStamp
  15. {
  16. public ChargeBack()
  17. {
  18. ChargeBackPays = new HashSet<ChargeBackPay>();
  19. ChargeBackAsbitems=new HashSet<ChargeBackAsbitem>();
  20. }
  21. /// <summary>
  22. /// 收据号
  23. /// </summary>
  24. [Column("charge_id")]
  25. public Guid ChargeId { get; set; }
  26. /// <summary>
  27. /// 结账ID
  28. /// </summary>
  29. [Column("settle_account_id")]
  30. public Guid? SettleAccountId { get; set; }
  31. /// <summary>
  32. /// 结账时间
  33. /// </summary>
  34. [Column("settle_time")]
  35. public DateTime? SettleTime { get; set; }
  36. ///// <summary>
  37. ///// 退费人
  38. ///// </summary>
  39. //[Column("creator_id")]
  40. //public Guid CreatorId { get; set; }
  41. ///// <summary>
  42. ///// 退费日期
  43. ///// </summary>
  44. //[Column("creation_time", TypeName = "timestamp without time zone")]
  45. //public DateTime CreationTime { get; set; }
  46. [Column("concurrency_stamp")]
  47. public string ConcurrencyStamp { get; set; }
  48. [ForeignKey(nameof(ChargeId))]
  49. [InverseProperty("ChargeBacks")]
  50. public virtual Charge Charge { get; set; } = null!;
  51. [InverseProperty(nameof(ChargeBackPay.ChargeBack))]
  52. public virtual ICollection<ChargeBackPay> ChargeBackPays { get; set; }
  53. [InverseProperty(nameof(ChargeBackAsbitem.ChargeBack))]
  54. public virtual ICollection<ChargeBackAsbitem> ChargeBackAsbitems { get; set; }
  55. //public override object[] GetKeys()
  56. //{
  57. // return new object[] { ChargeBackId };
  58. //}
  59. }
  60. }