using SqlSugar;
namespace DS.Module.Core.Data
{
///
/// 对外接口授权表
///
[SugarTable("sys_api_auth", "对外接口授权表")]
public class SysApiAuth : BaseModelV2
{
///
/// 接口代码
///
[SugarColumn(ColumnDescription = "接口代码", IsNullable = true, Length = 500)]
public string? ApiCode { get; set; }
///
/// 接口名称
///
[SugarColumn(ColumnDescription = "接口名称", IsNullable = true, Length = 1000)]
public string? ApiName { get; set; }
///
/// 接口KEY
///
[SugarColumn(ColumnDescription = "接口KEY", IsNullable = true, Length = 100)]
public string? ApiKey { get; set; }
///
/// 接口秘钥
///
[SugarColumn(ColumnDescription = "接口秘钥", IsNullable = true, Length = 200)]
public string? ApiSecret { get; set; }
///
/// 有效截止日期
///
[SugarColumn(ColumnDescription = "有效截止日期", IsNullable = true)]
public DateTime? ExpireDate { get; set; }
///
/// 禁用标志
///
[SugarColumn(ColumnDescription = "禁用标志", IsNullable = false, Length = 1)]
public bool IsDisable { get; set; }
///
/// 用户ID
///
[SugarColumn(ColumnDescription = "用户ID", IsNullable = true)]
public long? UserId { get; set; }
///
/// 用户代码
///
[SugarColumn(ColumnDescription = "用户代码", IsNullable = true, Length = 40)]
public string? UserCode { get; set; }
///
/// 用户姓名
///
[SugarColumn(ColumnDescription = "用户姓名", IsNullable = true, Length = 60)]
public string? UserName { get; set; }
///
/// 租户Id
///
[SqlSugar.SugarColumn(ColumnDescription = "租户Id")]
public long? TenantId { get; set; }
///
/// 公司id
///
[SugarColumn(ColumnDescription = "公司id", IsNullable = true, Length = 100)]
public string? CompanyId { get; set; }
}
}