using System.ComponentModel.DataAnnotations; namespace TakeoutSaaS.Infrastructure.App.Options; /// /// 默认租户种子配置。 /// public sealed class TenantSeedOptions { /// /// 自定义租户标识,不填则自动生成。 /// 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; /// /// 租户简称。 /// [MaxLength(128)] public string? ShortName { get; set; } /// /// 联系人姓名。 /// [MaxLength(64)] public string? ContactName { get; set; } /// /// 联系电话。 /// [MaxLength(32)] public string? ContactPhone { get; set; } }