更新代码
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- =============================================================
|
||||
-- 租户站点扩展设置表:yz_system_tenant_setting_items
|
||||
-- 说明:租户后台「站点设置」的扩展键值项(tid + setting_key 唯一)。
|
||||
-- 可重复执行(CREATE TABLE IF NOT EXISTS)。
|
||||
-- 运行:mysql -h<host> -P<port> -u<user> -p <db> < create_tenant_setting_items.sql
|
||||
-- =============================================================
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `yz_system_tenant_setting_items` (
|
||||
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`tid` BIGINT UNSIGNED NOT NULL DEFAULT 0,
|
||||
`setting_key` VARCHAR(64) NOT NULL DEFAULT '',
|
||||
`setting_value` LONGTEXT NULL,
|
||||
`create_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`update_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`delete_time` DATETIME NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_tid_key` (`tid`,`setting_key`),
|
||||
KEY `idx_tid` (`tid`),
|
||||
KEY `idx_delete_time` (`delete_time`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='租户站点扩展设置';
|
||||
Reference in New Issue
Block a user