using System.ComponentModel.DataAnnotations;

namespace TakeoutSaaS.Infrastructure.App.Options;

/// <summary>
/// 字典项种子配置。
/// </summary>
public sealed class DictionarySeedItemOptions
{
    /// <summary>
    /// 字典项键。
    /// </summary>
    [Required]
    [MaxLength(64)]
    public string Key { get; set; } = string.Empty;

    /// <summary>
    /// 字典项值。
    /// </summary>
    [Required]
    [MaxLength(256)]
    public string Value { get; set; } = string.Empty;

    /// <summary>
    /// 描述。
    /// </summary>
    [MaxLength(512)]
    public string? Description { get; set; }

    /// <summary>
    /// 排序。
    /// </summary>
    public int SortOrder { get; set; } = 100;

    /// <summary>
    /// 是否启用。
    /// </summary>
    public bool IsEnabled { get; set; } = true;
}
