using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Atomx.Common.Entities { /// /// 货币信息 /// public class Currency { /// /// 数据ID /// [DatabaseGenerated(DatabaseGeneratedOption.None)] [Key] public int Id { get; set; } /// /// 货币名称,系统 /// [Column(TypeName = "varchar(50)")] public string Name { get; set; } = string.Empty; /// /// 货币标题,识别 /// [Column(TypeName = "varchar(50)")] public string Title { get; set; } = string.Empty; /// /// 货币单位代码 /// [Column(TypeName = "varchar(10)")] public string CurrencyCode { get; set; }= string.Empty; /// /// 本地显示 /// [Column(TypeName = "varchar(15)")] public string DisplayLocale { get; set;} = string.Empty; /// /// 货币符号 /// [Column(TypeName = "varchar(8)")] public string Symbolic { get; set; } = string.Empty; /// /// 数字自定义格式化 /// [Column(TypeName = "varchar(20)")] public string CustomFormatting { get; set; } = string.Empty; /// /// 兑换汇率 /// [Column(TypeName = "decimal(16, 4)")] public decimal Rate { get; set; } /// /// 排序 /// public int DisplayOrder { get; set; } /// /// 是否显示 /// public bool EnableDisplay { get; set; } /// /// 启用支付 /// public bool EnablePay { get; set; } /// /// 是否可用 /// public bool Enabled { get; set; } /// /// 建立时间 /// [Column(TypeName = "timestamptz")] public DateTime CreateTime { get; set; } /// /// 最后更新时间 /// [Column(TypeName = "timestamptz")] public DateTime? UpdateTime { get; set; } } }