if exists(
select 1 from sys.systable
where table_name='CPS_DATA_PERMISSION_DEF'
and table_type in ('BASE', 'GBL TEMP')
and creator=user_id('CPSSYS')
) then
drop table CPSSYS.CPS_DATA_PERMISSION_DEF
end if;
/*==============================================================*/
/* Table: CPS_DATA_PERMISSION_DEF */
/*==============================================================*/
create table CPSSYS.CPS_DATA_PERMISSION_DEF
(
DATAPERMISSION_ID VARCHAR2(100) not null,
NAME VARCHAR2(100) null,
FEATURE_CODE VARCHAR2(64) null,
constraint PK_CPS_DATA_PERMISSION_DEF primary key clustered (DATAPERMISSION_ID)
);
comment on table CPSSYS.CPS_DATA_PERMISSION_DEF is
'<EnglishName>
CPS_DATA_PERMISSION_DEF
</EnglishName>
<EnglishComment>
This table is used to save all data permission definition
in the system. To apply for or use a function, an operator must have
the permission to operate the function data.
</EnglishComment>
<ChineseComment>
保存系统里所有的数据权限定义。操作员要申请/执行某个功能,如果该功能所操纵的数据进行了数据权限的管理,则操作员必须具有对该数据的操作权限。
</ChineseComment>';
comment on column CPSSYS.CPS_DATA_PERMISSION_DEF.DATAPERMISSION_ID is
'<EnglishName>
Data Permission ID
</EnglishName>
<EnglishComment>
Unique ID for data permission granularity.
</EnglishComment>
<ChineseComment>
数据权限粒度类型的唯一标识符
</ChineseComment>';
comment on column CPSSYS.CPS_DATA_PERMISSION_DEF.NAME is
'<EnglishName>
Name
</EnglishName>
<EnglishComment>
Data permission name.
</EnglishComment>
<ChineseComment>
数据权限的名称
</ChineseComment>';
comment on column CPSSYS.CPS_DATA_PERMISSION_DEF.FEATURE_CODE is
'<EnglishName>
Feature Code
</EnglishName>
<EnglishComment>
Feature code corresponding to a data record.
</EnglishComment>
<ChineseComment>
数据对应的特性编码
</ChineseComment>';