using OASystem.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.Entities.System
{
///
/// 汇率记录
///
[SugarTable("Sys_ExchangeRateRecord")]
public class Sys_ExchangeRateRecord : EntityBase
{
///
/// 团组Id
///
[SugarColumn(ColumnDescription = "团组Id", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "int")]
public int? DiId { get; set; } = 0;
///
/// 关联模块
///
[SugarColumn(ColumnDescription = "关联模块", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "varchar(50)")]
public string? LinkModule { get; set; }
///
/// 汇率日期
///
[SugarColumn(ColumnDescription = "汇率日期", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "datetime")]
public DateTime? RateDateTime { get; set; }
///
/// 数据来源
///
[SugarColumn(ColumnDescription = "数据来源", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "int")]
public RateDataSourcesEnum RateDataSource { get; set; } = RateDataSourcesEnum.JuHeAPI;
///
/// 汇率信息
/// 美元(USD):7.5|欧元(EUR):8.5|英镑(GBP):9.59|日元(JPY):0.06|港币(HKD):0.97
///
[SugarColumn(ColumnDescription = "汇率信息", IsNullable = true, DefaultValue = "NULL", ColumnDataType = "nvarchar(500)")]
public string RateInfo { get; set; }
}
}