using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Domain.Entities;
namespace Shentun.Peis.Models
{
///
/// 退费支付方式
///
[Table("charge_back_pay")]
[Index(nameof(ChargeBackId), nameof(PayModeId), Name = "IX_charge_back_pay_pay_mode_id", IsUnique = true)]
public class ChargeBackPay : Entity, IHasConcurrencyStamp
{
[Column("charge_back_id")]
public Guid ChargeBackId { get; set; }
///
/// 支付方式ID
///
[Column("pay_mode_id")]
[StringLength(4)]
public string PayModeId { get; set; } = null!;
///
/// 退费金额
///
[Column("back_moeny")]
[Precision(10, 2)]
public decimal BackMoeny { get; set; }
///
/// 卡记录ID
///
[Column("card_bill_id")]
public Guid? CardBillId { get; set; }
[Column("concurrency_stamp")]
public string ConcurrencyStamp { get; set; }
///
///
///
[ForeignKey(nameof(ChargeBackId))]
[InverseProperty("ChargeBackPays")]
public virtual ChargeBack ChargeBack { get; set; } = null!;
[ForeignKey(nameof(PayModeId))]
[InverseProperty("ChargeBackPays")]
public virtual PayMode PayMode { get; set; } = null!;
}
}