using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using TakeoutSaaS.Domain.Dictionary.Enums;
namespace TakeoutSaaS.Infrastructure.App.Options;
///
/// 字典分组种子配置。
///
public sealed class DictionarySeedGroupOptions
{
///
/// 所属租户,不填则使用默认租户或系统租户。
///
public long? TenantId { get; set; }
///
/// 分组编码。
///
[Required]
[MaxLength(64)]
public string Code { get; set; } = string.Empty;
///
/// 分组名称。
///
[Required]
[MaxLength(128)]
public string Name { get; set; } = string.Empty;
///
/// 分组作用域。
///
public DictionaryScope Scope { get; set; } = DictionaryScope.Business;
///
/// 描述信息。
///
[MaxLength(512)]
public string? Description { get; set; }
///
/// 是否启用。
///
public bool IsEnabled { get; set; } = true;
///
/// 字典项集合。
///
public List Items { get; set; } = new();
}