mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-21 02:25:56 +08:00
add sql 新增 sys_tenant 租户表, sys_tenant_package 租户套餐表 ;
This commit is contained in:
parent
d09ea16f46
commit
427137d3a8
@ -1,3 +1,90 @@
|
|||||||
|
/*==============================================================*/
|
||||||
|
/* Table: sys_tenant 租户表 */
|
||||||
|
/*==============================================================*/
|
||||||
|
create table sys_tenant (
|
||||||
|
id number(20) not null,
|
||||||
|
tenant_id varchar2(20) not null,
|
||||||
|
contact_user_name varchar2(20) default '',
|
||||||
|
contact_phone varchar2(20) default '',
|
||||||
|
company_name varchar2(50) default '',
|
||||||
|
license_number varchar2(30) default '',
|
||||||
|
address varchar2(200) default '',
|
||||||
|
intro varchar2(200) default '',
|
||||||
|
remark varchar2(200) default '',
|
||||||
|
package_id number(20) default null,
|
||||||
|
expire_time date default null,
|
||||||
|
account_count number(4) default 0,
|
||||||
|
status char(1) default '0',
|
||||||
|
del_flag char(1) default '0',
|
||||||
|
create_dept number(20) default null,
|
||||||
|
create_by number(20) default null,
|
||||||
|
create_time date,
|
||||||
|
update_by number(20) default null,
|
||||||
|
update_time date
|
||||||
|
);
|
||||||
|
|
||||||
|
alter table sys_tenant add constraint pk_sys_tenant primary key (id);
|
||||||
|
|
||||||
|
comment on table sys_tenant is '租户表';
|
||||||
|
comment on column sys_tenant.tenant_id is '租户编号';
|
||||||
|
comment on column sys_tenant.contact_phone is '联系电话';
|
||||||
|
comment on column sys_tenant.company_name is '企业名称';
|
||||||
|
comment on column sys_tenant.company_name is '联系人';
|
||||||
|
comment on column sys_tenant.license_number is '统一社会信用代码';
|
||||||
|
comment on column sys_tenant.address is '地址';
|
||||||
|
comment on column sys_tenant.intro is '企业简介';
|
||||||
|
comment on column sys_tenant.remark is '备注';
|
||||||
|
comment on column sys_tenant.package_id is '租户套餐编号';
|
||||||
|
comment on column sys_tenant.expire_time is '过期时间';
|
||||||
|
comment on column sys_tenant.account_count is '用户数量';
|
||||||
|
comment on column sys_tenant.status is '租户状态(0正常 1停用)';
|
||||||
|
comment on column sys_tenant.del_flag is '删除标志(0代表存在 2代表删除)';
|
||||||
|
comment on column sys_tenant.create_dept is '创建部门';
|
||||||
|
comment on column sys_tenant.create_by is '创建者';
|
||||||
|
comment on column sys_tenant.create_time is '创建时间';
|
||||||
|
comment on column sys_tenant.update_by is '更新者';
|
||||||
|
comment on column sys_tenant.update_time is '更新时间';
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 初始化-租户表数据
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
insert into sys_tenant values (1, '000000', '张三', '13912345678', 'xxx有限公司', 'xxx', 'xxx', 'xxx', 'xxx', null, null, 10, '0', '0', 103, 1, sysdate, null, null);
|
||||||
|
|
||||||
|
|
||||||
|
/*==============================================================*/
|
||||||
|
/* Table: sys_tenant_package 租户套餐表 */
|
||||||
|
/*==============================================================*/
|
||||||
|
create table sys_tenant_package (
|
||||||
|
package_id number(20) not null,
|
||||||
|
package_name varchar2(20) default '',
|
||||||
|
menu_ids varchar2(3000) default '',
|
||||||
|
remark varchar2(200) default '',
|
||||||
|
status char(1) default '0',
|
||||||
|
del_flag char(1) default '0',
|
||||||
|
create_dept number(20) default null,
|
||||||
|
create_by number(20) default null,
|
||||||
|
create_time date,
|
||||||
|
update_by number(20) default null,
|
||||||
|
update_time date
|
||||||
|
);
|
||||||
|
|
||||||
|
alter table sys_tenant_package add constraint pk_sys_tenant_package primary key (package_id);
|
||||||
|
|
||||||
|
comment on table sys_tenant_package is '租户套餐表';
|
||||||
|
comment on column sys_tenant_package.package_id is '租户套餐id';
|
||||||
|
comment on column sys_tenant_package.package_name is '套餐名称';
|
||||||
|
comment on column sys_tenant_package.menu_ids is '关联菜单id';
|
||||||
|
comment on column sys_tenant_package.remark is '备注';
|
||||||
|
comment on column sys_tenant_package.status is '状态(0正常 1停用)';
|
||||||
|
comment on column sys_tenant_package.del_flag is '删除标志(0代表存在 2代表删除)';
|
||||||
|
comment on column sys_tenant_package.create_dept is '创建部门';
|
||||||
|
comment on column sys_tenant_package.create_by is '创建者';
|
||||||
|
comment on column sys_tenant_package.create_time is '创建时间';
|
||||||
|
comment on column sys_tenant_package.update_by is '更新者';
|
||||||
|
comment on column sys_tenant_package.update_time is '更新时间';
|
||||||
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- 1、部门表
|
-- 1、部门表
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
|
|||||||
@ -1,3 +1,95 @@
|
|||||||
|
/*==============================================================*/
|
||||||
|
/* Table: sys_tenant 租户表 */
|
||||||
|
/*==============================================================*/
|
||||||
|
drop table if exists sys_tenant;
|
||||||
|
create table if not exists sys_tenant
|
||||||
|
(
|
||||||
|
id int8,
|
||||||
|
tenant_id varchar(20) not null,
|
||||||
|
contact_user_name varchar(20) default null::varchar,
|
||||||
|
contact_phone varchar(20) default null::varchar,
|
||||||
|
company_name varchar(50) default null::varchar,
|
||||||
|
license_number varchar(30) default null::varchar,
|
||||||
|
address varchar(200) default null::varchar,
|
||||||
|
intro varchar(200) default null::varchar,
|
||||||
|
remark varchar(200) default null::varchar,
|
||||||
|
package_id int8,
|
||||||
|
expire_time timestamp,
|
||||||
|
account_count int4 default 0,
|
||||||
|
status char default '0'::bpchar,
|
||||||
|
del_flag char default '0'::bpchar,
|
||||||
|
create_dept int8,
|
||||||
|
create_by int8,
|
||||||
|
create_time timestamp,
|
||||||
|
update_by int8,
|
||||||
|
update_time timestamp,
|
||||||
|
constraint "pk_sys_tenant" primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
comment on table sys_tenant is '租户表';
|
||||||
|
comment on column sys_tenant.tenant_id is '租户编号';
|
||||||
|
comment on column sys_tenant.contact_phone is '联系电话';
|
||||||
|
comment on column sys_tenant.company_name is '企业名称';
|
||||||
|
comment on column sys_tenant.company_name is '联系人';
|
||||||
|
comment on column sys_tenant.license_number is '统一社会信用代码';
|
||||||
|
comment on column sys_tenant.address is '地址';
|
||||||
|
comment on column sys_tenant.intro is '企业简介';
|
||||||
|
comment on column sys_tenant.remark is '备注';
|
||||||
|
comment on column sys_tenant.package_id is '租户套餐编号';
|
||||||
|
comment on column sys_tenant.expire_time is '过期时间';
|
||||||
|
comment on column sys_tenant.account_count is '用户数量';
|
||||||
|
comment on column sys_tenant.status is '租户状态(0正常 1停用)';
|
||||||
|
comment on column sys_tenant.del_flag is '删除标志(0代表存在 2代表删除)';
|
||||||
|
comment on column sys_tenant.create_dept is '创建部门';
|
||||||
|
comment on column sys_tenant.create_by is '创建者';
|
||||||
|
comment on column sys_tenant.create_time is '创建时间';
|
||||||
|
comment on column sys_tenant.update_by is '更新者';
|
||||||
|
comment on column sys_tenant.update_time is '更新时间';
|
||||||
|
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 初始化-租户表数据
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
insert into sys_tenant values (1, '000000', '张三', '13912345678', 'xxx有限公司', 'xxx', 'xxx', 'xxx', 'xxx', null, null, 10, '0', '0', 103, 1, now(), null, null);
|
||||||
|
|
||||||
|
|
||||||
|
/*==============================================================*/
|
||||||
|
/* Table: sys_tenant_package 租户套餐表 */
|
||||||
|
/*==============================================================*/
|
||||||
|
drop table if exists sys_tenant_package;
|
||||||
|
create table if not exists sys_tenant_package
|
||||||
|
(
|
||||||
|
package_id int8,
|
||||||
|
package_name varchar(20) default ''::varchar,
|
||||||
|
menu_ids varchar(3000) default ''::varchar,
|
||||||
|
remark varchar(200) default ''::varchar,
|
||||||
|
status char default '0'::bpchar,
|
||||||
|
del_flag char default '0'::bpchar,
|
||||||
|
create_dept int8,
|
||||||
|
create_by int8,
|
||||||
|
create_time timestamp,
|
||||||
|
update_by int8,
|
||||||
|
update_time timestamp,
|
||||||
|
constraint "pk_sys_tenant_package" primary key (package_id)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
comment on table sys_tenant_package is '租户套餐表';
|
||||||
|
comment on column sys_tenant_package.package_id is '租户套餐id';
|
||||||
|
comment on column sys_tenant_package.package_name is '套餐名称';
|
||||||
|
comment on column sys_tenant_package.menu_ids is '关联菜单id';
|
||||||
|
comment on column sys_tenant_package.remark is '备注';
|
||||||
|
comment on column sys_tenant_package.status is '状态(0正常 1停用)';
|
||||||
|
comment on column sys_tenant_package.del_flag is '删除标志(0代表存在 2代表删除)';
|
||||||
|
comment on column sys_tenant_package.create_dept is '创建部门';
|
||||||
|
comment on column sys_tenant_package.create_by is '创建者';
|
||||||
|
comment on column sys_tenant_package.create_time is '创建时间';
|
||||||
|
comment on column sys_tenant_package.update_by is '更新者';
|
||||||
|
comment on column sys_tenant_package.update_time is '更新时间';
|
||||||
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- 1、部门表
|
-- 1、部门表
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
|
|||||||
@ -1,3 +1,59 @@
|
|||||||
|
/*==============================================================*/
|
||||||
|
/* Table: sys_tenant 租户表 */
|
||||||
|
/*==============================================================*/
|
||||||
|
drop table if exists sys_tenant;
|
||||||
|
create table sys_tenant
|
||||||
|
(
|
||||||
|
id bigint(20) NOT NULL comment 'id',
|
||||||
|
tenant_id varchar(20) NOT NULL comment '租户编号',
|
||||||
|
contact_user_name varchar(20) comment '联系人',
|
||||||
|
contact_phone varchar(20) comment '联系电话',
|
||||||
|
company_name varchar(50) comment '企业名称',
|
||||||
|
license_number varchar(30) comment '统一社会信用代码',
|
||||||
|
address varchar(200) comment '地址',
|
||||||
|
intro varchar(200) comment '企业简介',
|
||||||
|
remark varchar(200) comment '备注',
|
||||||
|
package_id bigint(20) comment '租户套餐编号',
|
||||||
|
expire_time datetime comment '过期时间',
|
||||||
|
account_count int comment '用户数量',
|
||||||
|
status char(1) DEFAULT '0' comment '租户状态(0正常 1停用)',
|
||||||
|
del_flag char(1) DEFAULT '0' comment '删除标志(0代表存在 2代表删除)',
|
||||||
|
create_dept bigint(20) comment '创建部门',
|
||||||
|
create_by bigint(20) comment '创建者',
|
||||||
|
create_time datetime comment '创建时间',
|
||||||
|
update_by bigint(20) comment '更新者',
|
||||||
|
update_time datetime comment '更新时间',
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
) engine=innodb comment = '租户表';
|
||||||
|
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 初始化-租户表数据
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
INSERT INTO sys_tenant VALUES (1, '000000', '张三', '13912345678', 'XXX有限公司', 'XXX', 'XXX', 'XXX', 'XXX', NULL, NULL, 10, '0', '0', 103, 1, SYSDATE(), NULL, NULL);
|
||||||
|
|
||||||
|
|
||||||
|
/*==============================================================*/
|
||||||
|
/* Table: sys_tenant_package 租户套餐表 */
|
||||||
|
/*==============================================================*/
|
||||||
|
drop table if exists sys_tenant_package;
|
||||||
|
CREATE TABLE sys_tenant_package (
|
||||||
|
package_id bigint(20) NOT NULL comment '租户套餐id',
|
||||||
|
package_name varchar(20) comment '套餐名称',
|
||||||
|
menu_ids varchar(3000) comment '关联菜单id',
|
||||||
|
remark varchar(200) comment '备注',
|
||||||
|
status char(1) DEFAULT '0' comment '状态(0正常 1停用)',
|
||||||
|
del_flag char(1) DEFAULT '0' comment '删除标志(0代表存在 2代表删除)',
|
||||||
|
create_dept bigint(20) comment '创建部门',
|
||||||
|
create_by bigint(20) comment '创建者',
|
||||||
|
create_time datetime comment '创建时间',
|
||||||
|
update_by bigint(20) comment '更新者',
|
||||||
|
update_time datetime comment '更新时间',
|
||||||
|
PRIMARY KEY (package_id)
|
||||||
|
) engine=innodb comment = '租户套餐表';
|
||||||
|
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- 1、部门表
|
-- 1、部门表
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
|
|||||||
@ -1,3 +1,246 @@
|
|||||||
|
CREATE TABLE [sys_tenant]
|
||||||
|
(
|
||||||
|
[id] bigint NOT NULL,
|
||||||
|
[tenant_id] nvarchar(20) NOT NULL,
|
||||||
|
[contact_user_name] nvarchar(20) NULL,
|
||||||
|
[contact_phone] nvarchar(20) NULL,
|
||||||
|
[company_name] nvarchar(50) NULL,
|
||||||
|
[license_number] nvarchar(30) NULL,
|
||||||
|
[address] nvarchar(200) NULL,
|
||||||
|
[intro] nvarchar(200) NULL,
|
||||||
|
[remark] nvarchar(200) NULL,
|
||||||
|
[package_id] bigint NULL,
|
||||||
|
[expire_time] datetime2(7) NULL,
|
||||||
|
[status] nchar(1) DEFAULT ('0') NULL,
|
||||||
|
[del_flag] nchar(1) DEFAULT ('0') NULL,
|
||||||
|
[create_dept] bigint NULL,
|
||||||
|
[create_by] bigint NULL,
|
||||||
|
[create_time] datetime2(7) NULL,
|
||||||
|
[update_by] bigint NULL,
|
||||||
|
[update_time] datetime2(7) NULL,
|
||||||
|
CONSTRAINT [PK__sys_tenant__B21E8F2427725F8A] PRIMARY KEY CLUSTERED ([id])
|
||||||
|
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
|
||||||
|
ON [PRIMARY]
|
||||||
|
)
|
||||||
|
ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'id' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'id'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'租户编号' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'tenant_id'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'联系人' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'contact_user_name'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'联系电话' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'contact_phone'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'企业名称' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'company_name'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'统一社会信用代码' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'license_number'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'地址' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'address'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'企业简介' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'intro'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'备注' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'remark'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'租户套餐编号' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'package_id'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'过期时间' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'expire_time'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'用户数量' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'account_count'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'租户状态(0正常 1停用)' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'status'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'删除标志(0代表存在 2代表删除)' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'del_flag'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建部门' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'create_dept'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建者' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'create_by'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建时间' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'create_time'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'更新者' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'update_by'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'更新时间' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant',
|
||||||
|
'COLUMN', N'update_time'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'租户表' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant'
|
||||||
|
GO
|
||||||
|
|
||||||
|
INSERT [sys_tenant] ([id], [tenant_id], [contact_user_name], [contact_phone], [company_name], [license_number], [address], [intro], [remark], [package_id], [expire_time], [status], [del_flag], [create_dept], [create_by], [create_time], [update_by], [update_time]) VALUES (1, '000000', '张三', '13912345678', 'xxx有限公司', 'xxx', 'xxx', 'xxx', 'xxx', NULL, NULL, 10, '0', '0', 103, 1, getdate(), NULL, NULL)
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE [sys_tenant_package]
|
||||||
|
(
|
||||||
|
[package_id] bigint NOT NULL,
|
||||||
|
[package_name] nvarchar(20) NOT NULL,
|
||||||
|
[menu_ids] nvarchar(20) NULL,
|
||||||
|
[remark] nvarchar(200) NULL,
|
||||||
|
[status] nchar(1) DEFAULT ('0') NULL,
|
||||||
|
[del_flag] nchar(1) DEFAULT ('0') NULL,
|
||||||
|
[create_dept] bigint NULL,
|
||||||
|
[create_by] bigint NULL,
|
||||||
|
[create_time] datetime2(7) NULL,
|
||||||
|
[update_by] bigint NULL,
|
||||||
|
[update_time] datetime2(7) NULL,
|
||||||
|
CONSTRAINT [PK__sys_tenant_package__B21E8F2427725F8A] PRIMARY KEY CLUSTERED ([package_id])
|
||||||
|
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
|
||||||
|
ON [PRIMARY]
|
||||||
|
)
|
||||||
|
ON [PRIMARY]
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'租户套餐id' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'package_id'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'套餐名称' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'package_name'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'关联菜单id' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'menu_ids'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'备注' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'remark'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'租户状态(0正常 1停用)' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'status'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'删除标志(0代表存在 2代表删除)' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'del_flag'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建部门' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'create_dept'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建者' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'create_by'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建时间' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'create_time'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'更新者' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'update_by'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'更新时间' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package',
|
||||||
|
'COLUMN', N'update_time'
|
||||||
|
GO
|
||||||
|
EXEC sys.sp_addextendedproperty
|
||||||
|
'MS_Description', N'租户套餐表' ,
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'sys_tenant_package'
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE [gen_table]
|
CREATE TABLE [gen_table]
|
||||||
(
|
(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user