using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Atomx.Admin.Client.Models
{
    public class LanguageModel
    {
        /// <summary>
        /// 数据ID
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 语言名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 语言标题
        /// </summary>
        public string Title { get; set; } = string.Empty;

        /// <summary>
        /// 语言名称
        /// </summary>
        public string Culture { get; set; } = string.Empty;

        /// <summary>
        /// 国旗
        /// </summary>
        public string FlagImage { get; set; } = string.Empty;

        /// <summary>
        /// 排序
        /// </summary>
        public int DisplayOrder { get; set; }

        /// <summary>
        /// 是否可用，系统面
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 多语言资源的版本，可以是时间戳或哈希
        /// </summary>
        public string ResourceVersion { get; set; } = string.Empty;

        /// <summary>
        /// 是否编辑
        /// </summary>
        public bool IsEdit { get; set; }
    }
}
