namespace Fengling.Platform.Domain.AggregatesModel.GatewayAggregate;

/// <summary>
/// 网关租户实体 - 表示租户在网关中的配置
/// </summary>
public class GwTenant
{
    public long Id { get; set; }
    
    /// <summary>
    /// 租户代码
    /// </summary>
    public string TenantCode { get; set; } = string.Empty;
    
    /// <summary>
    /// 租户名称
    /// </summary>
    public string TenantName { get; set; } = string.Empty;
    
    /// <summary>
    /// 状态
    /// </summary>
    public int Status { get; set; } = 1;
    
    /// <summary>
    /// 创建人ID
    /// </summary>
    public long? CreatedBy { get; set; }
    
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedTime { get; set; } = DateTime.UtcNow;
    
    /// <summary>
    /// 更新人ID
    /// </summary>
    public long? UpdatedBy { get; set; }
    
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdatedTime { get; set; }
    
    /// <summary>
    /// 是否删除
    /// </summary>
    public bool IsDeleted { get; set; } = false;
    
    /// <summary>
    /// 版本号，用于乐观并发
    /// </summary>
    public int Version { get; set; } = 0;
}
