using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace Atomx.Common.Entities
{
///
/// 货币与支付通道关联表
///
public class CurrencyChannelRelation
{
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Key]
public long Id { get; set; }
///
/// 货币支付通道标题
///
public string Title { get; set; } = string.Empty;
///
/// 货币ID
///
public int CurrencyId { get; set; }
///
/// 支付通道ID
///
public int PayChannelId { get; set; }
///
/// 每天可用开始时间
///
public int StartTime { get; set; }
///
/// 每天可用暂停时间
///
public int EndTime { get; set; }
///
/// 每天可用时间的时区
///
public int TimeZone { get; set; }
///
/// 通道费率
///
public decimal Rate { get; set; }
///
/// 扩展信息
///
[Column(TypeName = "text")]
public string Extended { get; set; } = string.Empty;
///
/// 通道状态
///
public int Status { get; set; }
///
/// 建立时间
///
[Column(TypeName = "timestamptz")]
public DateTime CreateTime { get; set; }
///
/// 最后更新时间
///
[Column(TypeName = "timestamptz")]
public DateTime? UpdateTime { get; set; }
}
}