using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Atomx.Common.Entities
{
///
/// 州省
///
[Table("StateProvinces")]
public class StateProvince
{
///
/// 数据ID
///
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Key]
public long Id { get; set; }
///
/// 地区名称
///
[Column(TypeName = "varchar(256)")]
public string Name { get; set; } = string.Empty;
///
/// 国家ID
///
public long CountryId { get; set; }
///
/// 首字母
///
[Column(TypeName = "varchar(1)")]
public string Initial { get; set; } = string.Empty;
///
/// 缩写
///
[Column(TypeName = "varchar(32)")]
public string Abbreviation { get; set; } = string.Empty;
///
/// 是否启用
///
public bool Enabled { get; set; }
///
/// 显示排序
///
public int DisplayOrder { get; set; }
}
}