--建表脚本--
create table T_META_MENUFUNC(
FID varchar(36) not null comment '数据编码'
,FMENUID varchar(36) default null comment '明细菜单编码'
,FFUNCID varchar(36) default null comment '功能参数编码'
,primary key (FID)
) comment = '菜单功能关系'
--查询--
select FID as "fid",FMENUID as "fmenuid",FFUNCID as "ffuncid" from T_META_MENUFUNC
--查询(中文字段)--
select FID as "数据编码",FMENUID as "明细菜单编码",FFUNCID as "功能参数编码" from T_META_MENUFUNC
--INSERT脚本--
insert into T_META_MENUFUNC(FID,FMENUID,FFUNCID) values (?,?,?)
--UPDATE脚本--
update T_META_MENUFUNC set FID=?,FMENUID=?,FFUNCID=? where FID=?
--delete脚本--
delete from T_META_MENUFUNC where FID=?
--给字段加备注--
alter table T_META_MENUFUNC comment '菜单功能关系';
alter table T_META_MENUFUNC modify column FID varchar(36) not null comment '数据编码';
alter table T_META_MENUFUNC modify column FMENUID varchar(36) default null comment '明细菜单编码';
alter table T_META_MENUFUNC modify column FFUNCID varchar(36) default null comment '功能参数编码';
--建表脚本--
create table T_META_SUBSYSTEM(
FID varchar(36) not null comment '子系统编码'
,FTOPCLASSID varchar(36) not null comment '子系统分组编码'
,FNUMBER nvarchar(50) default null comment '子系统代码'
,FSEQ int default null comment '顺序'
,FVISIBLE int default null comment '可见性'
,FISDEFAULT int not null comment '是否系统预置'
,FCHECKBOX smallint default 0 comment '是否选中'
,FMapSCCMetaFolder nvarchar(500) default '' comment '子系统映射scc上元数据目'
,FFuncPermissionCtrl char(1) not null comment '是否功能权限控制'
,FFieldPermissionCtrl char(1) not null comment '是否字段权限控制'
,primary key (FID)
) comment = '子系统'
--查询--
select FID as "fid",FTOPCLASSID as "ftopclassid",FNUMBER as "fnumber",FSEQ as "fseq",FVISIBLE as "fvisible",FISDEFAULT as "fisdefault",FCHECKBOX as "fcheckbox",FMapSCCMetaFolder as "fmapsccmetafolder",FFuncPermissionCtrl as "ffuncpermissionctrl",FFieldPermissionCtrl as "ffieldpermissionctrl" from T_META_SUBSYSTEM
--查询(中文字段)--
select FID as "子系统编码",FTOPCLASSID as "子系统分组编码",FNUMBER as "子系统代码",FSEQ as "顺序",FVISIBLE as "可见性",FISDEFAULT as "是否系统预置",FCHECKBOX as "是否选中",FMapSCCMetaFolder as "子系统映射scc上元数据目",FFuncPermissionCtrl as "是否功能权限控制",FFieldPermissionCtrl as "是否字段权限控制" from T_META_SUBSYSTEM
--INSERT脚本--
insert into T_META_SUBSYSTEM(FID,FTOPCLASSID,FNUMBER,FSEQ,FVISIBLE,FISDEFAULT,FCHECKBOX,FMapSCCMetaFolder,FFuncPermissionCtrl,FFieldPermissionCtrl) values (?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_META_SUBSYSTEM set FID=?,FTOPCLASSID=?,FNUMBER=?,FSEQ=?,FVISIBLE=?,FISDEFAULT=?,FCHECKBOX=?,FMapSCCMetaFolder=?,FFuncPermissionCtrl=?,FFieldPermissionCtrl=? where FID=?
--delete脚本--
delete from T_META_SUBSYSTEM where FID=?
--给字段加备注--
alter table T_META_SUBSYSTEM comment '子系统';
alter table T_META_SUBSYSTEM modify column FID varchar(36) not null comment '子系统编码';
alter table T_META_SUBSYSTEM modify column FTOPCLASSID varchar(36) not null comment '子系统分组编码';
alter table T_META_SUBSYSTEM modify column FNUMBER nvarchar(50) default null comment '子系统代码';
alter table T_META_SUBSYSTEM modify column FSEQ int default null comment '顺序';
alter table T_META_SUBSYSTEM modify column FVISIBLE int default null comment '可见性';
alter table T_META_SUBSYSTEM modify column FISDEFAULT int not null comment '是否系统预置';
alter table T_META_SUBSYSTEM modify column FCHECKBOX smallint default 0 comment '是否选中';
alter table T_META_SUBSYSTEM modify column FMapSCCMetaFolder nvarchar(500) default '' comment '子系统映射scc上元数据目';
alter table T_META_SUBSYSTEM modify column FFuncPermissionCtrl char(1) not null comment '是否功能权限控制';
alter table T_META_SUBSYSTEM modify column FFieldPermissionCtrl char(1) not null comment '是否字段权限控制';
--建表脚本--
create table T_META_SUBSYSTEM_L(
FPKID varchar(36) not null comment '主键'
,FID varchar(36) not null comment '子系统编码'
,FLOCALEID int not null comment '语言'
,FNAME nvarchar(50) not null comment '名称'
,FDESCRIPTION nvarchar(100) default null comment '描述'
,primary key (FPKID)
) comment = '子系统多语言'
--查询--
select FPKID as "fpkid",FID as "fid",FLOCALEID as "flocaleid",FNAME as "fname",FDESCRIPTION as "fdescription" from T_META_SUBSYSTEM_L
--查询(中文字段)--
select FPKID as "主键",FID as "子系统编码",FLOCALEID as "语言",FNAME as "名称",FDESCRIPTION as "描述" from T_META_SUBSYSTEM_L
--INSERT脚本--
insert into T_META_SUBSYSTEM_L(FPKID,FID,FLOCALEID,FNAME,FDESCRIPTION) values (?,?,?,?,?)
--UPDATE脚本--
update T_META_SUBSYSTEM_L set FPKID=?,FID=?,FLOCALEID=?,FNAME=?,FDESCRIPTION=? where FPKID=?
--delete脚本--
delete from T_META_SUBSYSTEM_L where FPKID=?
--给字段加备注--
alter table T_META_SUBSYSTEM_L comment '子系统多语言';
alter table T_META_SUBSYSTEM_L modify column FPKID varchar(36) not null comment '主键';
alter table T_META_SUBSYSTEM_L modify column FID varchar(36) not null comment '子系统编码';
alter table T_META_SUBSYSTEM_L modify column FLOCALEID int not null comment '语言';
alter table T_META_SUBSYSTEM_L modify column FNAME nvarchar(50) not null comment '名称';
alter table T_META_SUBSYSTEM_L modify column FDESCRIPTION nvarchar(100) default null comment '描述';
--建表脚本--
create table T_META_TOPCLASS(
FTOPCLASSID varchar(36) not null comment '子系统分组编码'
,FSEQ int not null comment '顺序'
,FVISIBLE int not null comment '可见性'
,FISDEFAULT int not null comment '是否默认分组'
,primary key (FTOPCLASSID)
) comment = '子系统分组'
--查询--
select FTOPCLASSID as "ftopclassid",FSEQ as "fseq",FVISIBLE as "fvisible",FISDEFAULT as "fisdefault" from T_META_TOPCLASS
--查询(中文字段)--
select FTOPCLASSID as "子系统分组编码",FSEQ as "顺序",FVISIBLE as "可见性",FISDEFAULT as "是否默认分组" from T_META_TOPCLASS
--INSERT脚本--
insert into T_META_TOPCLASS(FTOPCLASSID,FSEQ,FVISIBLE,FISDEFAULT) values (?,?,?,?)
--UPDATE脚本--
update T_META_TOPCLASS set FTOPCLASSID=?,FSEQ=?,FVISIBLE=?,FISDEFAULT=? where FTOPCLASSID=?
--delete脚本--
delete from T_META_TOPCLASS where FTOPCLASSID=?
--给字段加备注--
alter table T_META_TOPCLASS comment '子系统分组';
alter table T_META_TOPCLASS modify column FTOPCLASSID varchar(36) not null comment '子系统分组编码';
alter table T_META_TOPCLASS modify column FSEQ int not null comment '顺序';
alter table T_META_TOPCLASS modify column FVISIBLE int not null comment '可见性';
alter table T_META_TOPCLASS modify column FISDEFAULT int not null comment '是否默认分组';
--建表脚本--
create table T_META_TOPCLASS_L(
FPKID varchar(36) not null comment '主键'
,FTOPCLASSID varchar(36) not null comment '子系统分组编码'
,FLOCALEID int not null comment '语言'
,FNAME nvarchar(50) default null comment '名称'
,FTOOLTIPS nvarchar(100) default null comment '提示'
,primary key (FPKID)
) comment = '子系统分组多语言'
--查询--
select FPKID as "fpkid",FTOPCLASSID as "ftopclassid",FLOCALEID as "flocaleid",FNAME as "fname",FTOOLTIPS as "ftooltips" from T_META_TOPCLASS_L
--查询(中文字段)--
select FPKID as "主键",FTOPCLASSID as "子系统分组编码",FLOCALEID as "语言",FNAME as "名称",FTOOLTIPS as "提示" from T_META_TOPCLASS_L
--INSERT脚本--
insert into T_META_TOPCLASS_L(FPKID,FTOPCLASSID,FLOCALEID,FNAME,FTOOLTIPS) values (?,?,?,?,?)
--UPDATE脚本--
update T_META_TOPCLASS_L set FPKID=?,FTOPCLASSID=?,FLOCALEID=?,FNAME=?,FTOOLTIPS=? where FPKID=?
--delete脚本--
delete from T_META_TOPCLASS_L where FPKID=?
--给字段加备注--
alter table T_META_TOPCLASS_L comment '子系统分组多语言';
alter table T_META_TOPCLASS_L modify column FPKID varchar(36) not null comment '主键';
alter table T_META_TOPCLASS_L modify column FTOPCLASSID varchar(36) not null comment '子系统分组编码';
alter table T_META_TOPCLASS_L modify column FLOCALEID int not null comment '语言';
alter table T_META_TOPCLASS_L modify column FNAME nvarchar(50) default null comment '名称';
alter table T_META_TOPCLASS_L modify column FTOOLTIPS nvarchar(100) default null comment '提示';
推荐阅读