You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.8 KiB
C#

using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;
namespace djy.Model {
[JsonObject(MemberSerialization.OptIn), Table(Name = "CUST_AUTH", DisableSyncStructure = true)]
public partial class CUSTAUTH {
[JsonProperty, Column(DbType = "varchar(50)", IsPrimary = true, IsNullable = false)]
public string GID { get; set; } = Guid.NewGuid().ToString().ToUpper();
[JsonProperty]
public int? BSTYPE { get; set; }
[JsonProperty, Column(Name = "comname", DbType = "varchar(100)")]
public string Comname { get; set; }
[JsonProperty, Column(InsertValueSql = "getdate()")]
public DateTime CREATETIME { get; set; }
/// <summary>
/// 秘钥key
/// </summary>
[JsonProperty, Column(DbType = "varchar(50)")]
public string SKEY { get; set; }
[JsonProperty, Column(DbType = "varchar(50)")]
public string USERID { get; set; }
[JsonProperty, Column(Name = "username", DbType = "varchar(50)")]
public string Username { get; set; }
/// <summary>
/// 状态 0停用 1 正常
/// </summary>
public int Status { get; set; }
/// <summary>
/// 授权模块
/// </summary>
[Column(Name = "Module", DbType = "nvarchar(500)")]
public string Module { get; set; }
/// <summary>
/// 授权模块 配置信息json格式
/// </summary>
[Column(Name = "ModuleJson", DbType = "nvarchar(MAX)")]
public string ModuleJson { get; set; }
/// <summary>
/// ip黑名单
/// </summary>
[Column(Name = "IpBlackList", DbType = "nvarchar(500)")]
public string IpBlackList { get; set; }
/// <summary>
/// IP白名单
/// </summary>
[Column(Name = "IpWhiteList", DbType = "nvarchar(500)")]
public string IpWhiteList { get; set; }
}
}