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.

58 lines
1.6 KiB

5 months ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
5 months 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. namespace Shentun.Peis.Models
  8. {
  9. /// <summary>
  10. /// 退费支付方式
  11. /// </summary>
  12. [Table("charge_back_pay")]
  13. [Index(nameof(ChargeBackId), nameof(PayModeId), Name = "IX_charge_back_pay_pay_mode_id", IsUnique = true)]
  14. public class ChargeBackPay : Entity<Guid>, IHasConcurrencyStamp
  15. {
  16. [Column("charge_back_id")]
  17. public Guid ChargeBackId { get; set; }
  18. /// <summary>
  19. /// 支付方式ID
  20. /// </summary>
  21. [Column("pay_mode_id")]
  22. [StringLength(4)]
  23. public string PayModeId { get; set; } = null!;
  24. /// <summary>
  25. /// 退费金额
  26. /// </summary>
  27. [Column("back_moeny")]
  28. [Precision(10, 2)]
  29. public decimal BackMoeny { get; set; }
  30. /// <summary>
  31. /// 卡记录ID
  32. /// </summary>
  33. [Column("card_bill_id")]
  34. public Guid? CardBillId { get; set; }
  35. [Column("concurrency_stamp")]
  36. public string ConcurrencyStamp { get; set; }
  37. /// <summary>
  38. ///
  39. /// </summary>
  40. [ForeignKey(nameof(ChargeBackId))]
  41. [InverseProperty("ChargeBackPays")]
  42. public virtual ChargeBack ChargeBack { get; set; } = null!;
  43. [ForeignKey(nameof(PayModeId))]
  44. [InverseProperty("ChargeBackPays")]
  45. public virtual PayMode PayMode { get; set; } = null!;
  46. }
  47. }