CREATE TABLE [T_Category_Child_Menu] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [Type] nvarchar(64) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ActionId] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ActionType] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ImageId] int  NOT NULL,
  [OrderById] int  NOT NULL,
  [ImageUrl] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsEnabled] bit  NOT NULL,
  [SubTitle] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  CONSTRAINT [PK__T_Catego__3214EC07464F6CD1] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Category_Child_Menu] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'菜单类型（banner,热门推荐，热门小说）'
GO
EXEC sp_addextendedproperty
'MS_Description', N'名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'动作Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'动作类型'
GO
EXEC sp_addextendedproperty
'MS_Description', N'图片Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'排序'
GO
EXEC sp_addextendedproperty
'MS_Description', N'图片补位'
GO
EXEC sp_addextendedproperty
'MS_Description', N'是否启用'
GO
EXEC sp_addextendedproperty
'MS_Description', N'副标题'
GO
EXEC sp_addextendedproperty
'MS_Description', N'发现页类别菜单'
GO

CREATE TABLE [T_Character] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Biography] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [Prologue] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ModelConfigId] int  NOT NULL,
  [Visibility] bit  NOT NULL,
  [CreateTime] datetime  NULL,
  [UpdateTime] datetime  NULL,
  [Gender] int  NOT NULL,
  [System] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [BgImg] int  NULL,
  [IconImg] int  NULL,
  [UserName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [UserSex] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NULL,
  [Token] int  NULL,
  CONSTRAINT [PK__T_Charac__3214EC070A8D79B3] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Character] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物名字'
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物简介'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'开场白，剧情'
GO
EXEC sp_addextendedproperty
'MS_Description', N'模型Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'公开/私密 0公开 1私密'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'性别0男1女2其他'
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物初始设定'
GO
EXEC sp_addextendedproperty
'MS_Description', N'背景图片'
GO
EXEC sp_addextendedproperty
'MS_Description', N'角色头像（是id）'
GO
EXEC sp_addextendedproperty
'MS_Description', N'对话名字'
GO
EXEC sp_addextendedproperty
'MS_Description', N'对话性别'
GO
EXEC sp_addextendedproperty
'MS_Description', N'system最大的token数'
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物表'
GO

CREATE TABLE [T_Character_Label] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [LabelName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  [LabelValue] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  CONSTRAINT [PK__T_Charac__3214EC0777B5F217] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Character_Label] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'标签id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'标签名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'标签值'
GO
EXEC sp_addextendedproperty
'MS_Description', N'角色标签表'
GO

CREATE TABLE [T_Character_Label_Relation] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [CharacterId] int  NOT NULL,
  [CharacterLabelId] int  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  CONSTRAINT [PK__T_Charac__3214EC071FC16A53] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Character_Label_Relation] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物和标签的关联id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物标签id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'关联角色和标签'
GO

CREATE TABLE [T_Character_Personality] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [Name] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Value] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  CONSTRAINT [PK__T_Charac__3214EC070476965C] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Character_Personality] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'主键'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'性格名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'性格值'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'角色性格表'
GO

CREATE TABLE [T_Character_Personality_Relation] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [PersonalityId] int  NOT NULL,
  [CharacterId] int  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  CONSTRAINT [PK__T_Charac__3214EC07BEBBEC9F] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Character_Personality_Relation] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'主键'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'性格Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'角色Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'角色和性格关联表'
GO

CREATE TABLE [T_Character_Type] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [Name] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [IsNotCategoryShow] bit  NOT NULL,
  [OrderBy] int  NOT NULL,
  [Value] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  CONSTRAINT [PK__T_Charac__3214EC070CC04F82] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Character_Type] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'类型id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'类型名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'分类页不显示'
GO
EXEC sp_addextendedproperty
'MS_Description', N'序号'
GO
EXEC sp_addextendedproperty
'MS_Description', N'类型值'
GO
EXEC sp_addextendedproperty
'MS_Description', N'发现页类型分类'
GO

CREATE TABLE [T_Character_Type_Intimacy] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [TypeId] int  NOT NULL,
  [CharacterId] int  NOT NULL,
  [UpdateTIme] datetime  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [OrderBy] int  NOT NULL,
  CONSTRAINT [PK__T_Charac__3214EC077745C163] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Character_Type_Intimacy] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'主键'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'列表Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'角色Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'类别表排序'
GO
EXEC sp_addextendedproperty
'MS_Description', N'角色和角色类型关联表'
GO

CREATE TABLE [T_Character_User_Intimacy] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [CharacterId] int  NOT NULL,
  [UserId] int  NOT NULL,
  [IntimacyValue] int  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  CONSTRAINT [PK__T_Charac__3214EC079BEEBDEA] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Character_User_Intimacy] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'亲密度id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'亲密值'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'存储用户和角色之间的亲密值'
GO

CREATE TABLE [T_Chat] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [UserId] int  NOT NULL,
  [Content] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [TimeStamp] datetime  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  [Input_tokens] int  NOT NULL,
  [Output_tokens] int  NOT NULL,
  [CharacterId] int  NOT NULL,
  [Role] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [SessionId] uniqueidentifier  NOT NULL,
  [SendDateDay] bigint  NOT NULL,
  [SendMessageDay] bigint  NOT NULL,
  [Type] int  NOT NULL,
  [ClaudeType] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [ClaudeId] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [ClaudeModel] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Tokens] int  NULL,
  CONSTRAINT [PK__T_Chat__3214EC079C2C8859] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Chat] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'聊天id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'聊天内容'
GO
EXEC sp_addextendedproperty
'MS_Description', N'消息内容'
GO
EXEC sp_addextendedproperty
'MS_Description', N'发送时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'输入token'
GO
EXEC sp_addextendedproperty
'MS_Description', N'输出token'
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物表Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'user/assistant'
GO
EXEC sp_addextendedproperty
'MS_Description', N'发送消息，天'
GO
EXEC sp_addextendedproperty
'MS_Description', N'发送消息时间戳'
GO
EXEC sp_addextendedproperty
'MS_Description', N'0正常，1重新生成，2 删除'
GO
EXEC sp_addextendedproperty
'MS_Description', N'聊天返回的消息的类型'
GO
EXEC sp_addextendedproperty
'MS_Description', N'聊天返回的Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'人物模型，聊天返回的模型'
GO
EXEC sp_addextendedproperty
'MS_Description', N'消耗的token'
GO
EXEC sp_addextendedproperty
'MS_Description', N'聊天记录表'
GO

CREATE TABLE [T_CoinPrices_Config] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [CoinCount] int  NULL,
  [OriginPrice] money  NULL,
  [CoinPrice] money  NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  CONSTRAINT [PK__T_CoinPr__3214EC0715664598] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_CoinPrices_Config] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'金币数量'
GO
EXEC sp_addextendedproperty
'MS_Description', N'原价'
GO
EXEC sp_addextendedproperty
'MS_Description', N'当前金币价格'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'金币价格配置表'
GO

CREATE TABLE [T_Image_Config] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [ImageId] int  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Url] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [CreateAt] datetime  NOT NULL,
  [UpdateAt] datetime  NOT NULL,
  [OssPath] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [Bucket] nvarchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [Region] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [ImageType] int DEFAULT 0 NOT NULL,
  CONSTRAINT [PK__T_Image___3214EC072BCFE4E5] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Image_Config] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'图片Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'图片名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'图片地址'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'oss存放路径'
GO
EXEC sp_addextendedproperty
'MS_Description', N'存储桶'
GO
EXEC sp_addextendedproperty
'MS_Description', N'地域'
GO
EXEC sp_addextendedproperty
'MS_Description', N'图片类型'
GO
EXEC sp_addextendedproperty
'MS_Description', N'图片表'
GO

CREATE TABLE [T_Model_Config] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [ModelName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Model] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [MaxTokens] int  NOT NULL,
  [ApiKey] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Url] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [AnthropicVersion] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [SystemTemplate] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [RequestTemplate] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [HeadersTemplate] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [ResponseTemplate] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsDefabult] bit  NULL,
  [OtherTemplate] nvarchar(max) COLLATE Chinese_PRC_CI_AS  NULL,
  CONSTRAINT [PK__T_Model___3214EC074121E040] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Model_Config] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'模型名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'模型model'
GO
EXEC sp_addextendedproperty
'MS_Description', N'模型运行最大的max_tokens'
GO
EXEC sp_addextendedproperty
'MS_Description', N'模型key x-api-key'
GO
EXEC sp_addextendedproperty
'MS_Description', N'模型请求地址'
GO
EXEC sp_addextendedproperty
'MS_Description', N'模型版本 anthropic-version'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'system上下文模板'
GO
EXEC sp_addextendedproperty
'MS_Description', N'请求模板'
GO
EXEC sp_addextendedproperty
'MS_Description', N'headers对象'
GO
EXEC sp_addextendedproperty
'MS_Description', N'返回数据模板'
GO
EXEC sp_addextendedproperty
'MS_Description', N'是否默认'
GO
EXEC sp_addextendedproperty
'MS_Description', N'其它的模板'
GO
EXEC sp_addextendedproperty
'MS_Description', N'模型配置表'
GO

CREATE TABLE [T_Orders] (
  [Id] int  NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [UserId] int  NOT NULL,
  [OrderType] int  NOT NULL,
  [Amount] int  NOT NULL,
  [Price] money  NOT NULL,
  [Status] int  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  [PaymentMethod] int  NULL,
  CONSTRAINT [PK__T_Orders__3214EC070849C94C] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Orders] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'订单id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'0金币购买1道具兑换'
GO
EXEC sp_addextendedproperty
'MS_Description', N'金币购买数量/道具兑换数量'
GO
EXEC sp_addextendedproperty
'MS_Description', N'花费的钱/花费的金币'
GO
EXEC sp_addextendedproperty
'MS_Description', N'0支付中1已支付2已取消'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'金币购买时的支付方式0wx 1支付宝'
GO
EXEC sp_addextendedproperty
'MS_Description', N'订单表'
GO

CREATE TABLE [T_ShoppingMall] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [Price] decimal(10,2)  NOT NULL,
  [PropId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [PropName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [PropType] int  NOT NULL,
  [PropImgId] int  NOT NULL,
  [IsProductDelisting] int  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NULL,
  [LaunchDateTime] datetime  NULL,
  [PropDesc] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  CONSTRAINT [PK__T_Shoppi__3214EC07DC10A165] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_ShoppingMall] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'道具Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户ID'
GO
EXEC sp_addextendedproperty
'MS_Description', N'价格'
GO
EXEC sp_addextendedproperty
'MS_Description', N'道具Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'道具名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'道具类型，0商城，1商店'
GO
EXEC sp_addextendedproperty
'MS_Description', N'道具图片配置 图片id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'商品是否下架 0否1是'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'商品上架时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'道具描述'
GO
EXEC sp_addextendedproperty
'MS_Description', N'商城表'
GO

CREATE TABLE [T_TransactionRecord] (
  [Id] int  NOT NULL,
  [UserId] int  NOT NULL,
  [TransactionType] int  NOT NULL,
  [CurrenyId] int  NULL,
  [TransactionTime] datetime  NOT NULL,
  [CurrencyCount] decimal(18)  NULL,
  [TransactionAmount] decimal(18)  NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  CONSTRAINT [PK__Transact__3214EC070BEE5E59] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_TransactionRecord] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'交易记录Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'交易类型0充值金币1赠送金币2兑换道具'
GO
EXEC sp_addextendedproperty
'MS_Description', N'货币Id 用来区分购买的是哪个套餐'
GO
EXEC sp_addextendedproperty
'MS_Description', N'交易时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'金币数量，正负值。充值获得的和实际消耗的'
GO
EXEC sp_addextendedproperty
'MS_Description', N'交易金额 如果是充值金币，记录实际支付的金额'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'交易记录表'
GO

CREATE TABLE [T_User] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [NickName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [UserName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [PhoneNum] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Email] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsActive] bit DEFAULT 0 NOT NULL,
  [CreatedAt] datetime  NOT NULL,
  [LastLoginTypeAt] int  NOT NULL,
  [LastLoginAt] datetime  NOT NULL,
  [UpdatedAt] datetime  NOT NULL,
  [RegisterType] int  NOT NULL,
  [Ip] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [State] int DEFAULT 0 NOT NULL,
  CONSTRAINT [PK__T_User__3214EC073733108B] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_User] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户昵称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户姓名'
GO
EXEC sp_addextendedproperty
'MS_Description', N'绑定的手机号'
GO
EXEC sp_addextendedproperty
'MS_Description', N'绑定的邮箱'
GO
EXEC sp_addextendedproperty
'MS_Description', N'是否活跃'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'最后一次登录方式,1手机号'
GO
EXEC sp_addextendedproperty
'MS_Description', N'最后一次登录时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'首次注册方式'
GO
EXEC sp_addextendedproperty
'MS_Description', N'Ip地址'
GO
EXEC sp_addextendedproperty
'MS_Description', N'0正常，1注销'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户表'
GO

CREATE TABLE [T_User_Chat] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [SessionId] uniqueidentifier  NOT NULL,
  [SessionName] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [CharacterId] int  NOT NULL,
  [ModelConfigId] int  NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [UserId] int  NOT NULL,
  [CreateAt] datetime  NOT NULL,
  [UpdateAt] datetime  NOT NULL,
  [IsDelete] bit  NOT NULL,
  [LastMessage] nvarchar(1000) COLLATE Chinese_PRC_CI_AS  NULL,
  [TotalToken] int  NULL,
  CONSTRAINT [PK_T_User_Char] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_User_Chat] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'会话Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'会话名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'角色Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'使用模型Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'是否删除'
GO
EXEC sp_addextendedproperty
'MS_Description', N'最后一条消息'
GO
EXEC sp_addextendedproperty
'MS_Description', N'消耗的总token'
GO
EXEC sp_addextendedproperty
'MS_Description', N'会话表'
GO

CREATE TABLE [T_User_Currency] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [CurrencyType] int  NOT NULL,
  [CurrencyName] nvarchar(20) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [CurrencyMoney] decimal(10,2)  NOT NULL,
  [UpdateAt] datetime  NOT NULL,
  [CreateAt] datetime  NOT NULL,
  [UserId] int  NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  CONSTRAINT [PK__T_User_C__3214EC0728E86D78] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_User_Currency] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'货币类型 付费币、免费币'
GO
EXEC sp_addextendedproperty
'MS_Description', N'货币名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'货币余额'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户货币表'
GO

CREATE TABLE [T_User_Currency_Log] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [UserId] int  NOT NULL,
  [CurrencyType] int  NOT NULL,
  [Consume] decimal(10,2)  NOT NULL,
  [ConsumeType] int  NOT NULL,
  [Remarks] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  CONSTRAINT [PK__T_User_C__3214EC07DBD26048] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_User_Currency_Log] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'金额类型'
GO
EXEC sp_addextendedproperty
'MS_Description', N'金额'
GO
EXEC sp_addextendedproperty
'MS_Description', N'消耗类型,0消耗，1增加'
GO
EXEC sp_addextendedproperty
'MS_Description', N'备注'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户金额记录表'
GO

CREATE TABLE [T_User_Data] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [UserId] int  NOT NULL,
  [TenantId] uniqueidentifier  NULL,
  [NickName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [VipType] int DEFAULT 0 NOT NULL,
  [Currency] int DEFAULT 0 NOT NULL,
  [UserIconUrl] nvarchar(300) COLLATE Chinese_PRC_CI_AS  NULL,
  [CreatedAt ] datetime  NOT NULL,
  [UpdatedAt] datetime  NOT NULL,
  CONSTRAINT [PK__T_User_D__E36C60C3D959FD89] PRIMARY KEY CLUSTERED ([Id], [UserId])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_User_Data] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'主键'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户昵称，需要和主表保持一致'
GO
EXEC sp_addextendedproperty
'MS_Description', N'vip类型'
GO
EXEC sp_addextendedproperty
'MS_Description', N'货币'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户头像'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户信息表'
GO

CREATE TABLE [T_User_MemoryCard] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [Name] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [UserId] int  NOT NULL,
  [CharacterId] int  NOT NULL,
  [RemainingCount] int  NOT NULL,
  [UseCount] int  NOT NULL,
  [CreateTime] datetime  NOT NULL,
  [UpdateTime] datetime  NOT NULL,
  [Remark] nvarchar(200) COLLATE Chinese_PRC_CI_AS  NULL,
  [MemoryCardType] int  NOT NULL,
  [MemoryCardToken] int  NOT NULL,
  [PopId] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  CONSTRAINT [PK__T_User_M__3214EC0706BA6604] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_User_MemoryCard] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'记忆卡名称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'角色Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'剩余次数'
GO
EXEC sp_addextendedproperty
'MS_Description', N'已使用次数'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'备注'
GO
EXEC sp_addextendedproperty
'MS_Description', N'记忆卡类型，0初级，1中级，2高级'
GO
EXEC sp_addextendedproperty
'MS_Description', N'记忆卡提升的token'
GO
EXEC sp_addextendedproperty
'MS_Description', N'计费产品Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户记忆卡'
GO

CREATE TABLE [T_User_Phone_Account] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [UserId] int  NOT NULL,
  [PhoneNum] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [VerificationCode] varchar(10) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [LastLoginAt] datetime  NOT NULL,
  [CreatedAt] datetime  NOT NULL,
  [UpdatedAt] datetime  NOT NULL,
  [NikeName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [IsLogout] bit DEFAULT 0 NOT NULL,
  CONSTRAINT [PK__T_User_P__3214EC07987BDDB2] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_User_Phone_Account] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'主键'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'手机号'
GO
EXEC sp_addextendedproperty
'MS_Description', N'验证码'
GO
EXEC sp_addextendedproperty
'MS_Description', N'最后一次登录时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'修改时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户昵称'
GO
EXEC sp_addextendedproperty
'MS_Description', N'是否注销'
GO
EXEC sp_addextendedproperty
'MS_Description', N'手机号登录表'
GO

CREATE TABLE [T_User_Prop] (
  [Id] int  NOT NULL,
  [UserId] int  NOT NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [PropId] int  NULL,
  [GetTime] datetime  NOT NULL,
  [UseTime] datetime  NULL,
  [IsUse] bit  NULL,
  [CreateTime] datetime  NULL,
  [UpdateTime] datetime  NULL,
  CONSTRAINT [PK__T_User_P__3214EC074CCE7A77] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_User_Prop] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'道具Id'
GO
EXEC sp_addextendedproperty
'MS_Description', N'获得时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'使用时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'是否使用'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'更新时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'用户道具表'
GO

CREATE TABLE [T_Verification_Code] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [Key] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [Code] nvarchar(10) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [CreateDay] int  NOT NULL,
  [ExpireAt] datetime  NOT NULL,
  [CreateAt] datetime  NOT NULL,
  [Remarks] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NULL,
  [TenantId] uniqueidentifier  NOT NULL,
  [VerificationType] int  NOT NULL,
  CONSTRAINT [PK__T_Verifi__3214EC074DE3F41A] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [T_Verification_Code] SET (LOCK_ESCALATION = TABLE)
GO
EXEC sp_addextendedproperty
'MS_Description', N'主键'
GO
EXEC sp_addextendedproperty
'MS_Description', N'手机号或者邮箱'
GO
EXEC sp_addextendedproperty
'MS_Description', N'验证码'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建天'
GO
EXEC sp_addextendedproperty
'MS_Description', N'过期时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'创建时间'
GO
EXEC sp_addextendedproperty
'MS_Description', N'备注'
GO
EXEC sp_addextendedproperty
'MS_Description', N'租户'
GO
EXEC sp_addextendedproperty
'MS_Description', N'0手机，1邮箱'
GO
EXEC sp_addextendedproperty
'MS_Description', N'验证码表'
GO

