数据表:T_PA_DISPLAYCOLS(方案显示列从表)

T_PA_DISPLAYCOLS(方案显示列从表):描述

名称

T_PA_DISPLAYCOLS(方案显示列从表)

代码

T_PA_DISPLAYCOLS

注释

 

模型

PA

主键

PK_PA_DISPLAYCOLS


T_PA_DISPLAYCOLS(方案显示列从表):列规格定义

名称

代码

数据类型

长度

强制

注释

分录内码

FENTRYID

int

 

TRUE

 

方案内码

FID

int

 

FALSE

 

显示列序号

FCOLSEQ

int

 

FALSE

 

列名

FCOLNAME

nvarchar(80)

80

FALSE

 

是否显示

FISVISIBLED

char(1)

1

FALSE

0为隐藏


T_PA_DISPLAYCOLS(方案显示列从表):脚本代码

if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_PA_DISPLAYCOLS') and o.name = 'FK_PA_PAYPERSONPLAN_DISPLAYCOLS')
alter table T_PA_DISPLAYCOLS
drop constraint FK_PA_PAYPERSONPLAN_DISPLAYCOLS
go

if exists (select 1
from sysindexes
where id = object_id('T_PA_DISPLAYCOLS')
and name = 'IDX_PA_DISPLAYCOLS_FID'
and indid > 0
and indid < 255)
drop index T_PA_DISPLAYCOLS.IDX_PA_DISPLAYCOLS_FID
go

if exists (select 1
from sysobjects
where id = object_id('T_PA_DISPLAYCOLS')
and type = 'U')
drop table T_PA_DISPLAYCOLS
go

/*==============================================================*/
/* Table: T_PA_DISPLAYCOLS */
/*==============================================================*/
create table T_PA_DISPLAYCOLS (
FENTRYID int not null,
FID int null default 0,
FCOLSEQ int null default 0,
FCOLNAME nvarchar(80) null,
FISVISIBLED char(1) null default '1',
constraint PK_T_PA_DISPLAYCOLS primary key (FENTRYID)
)
go

declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0为隐藏',
'user', @CurrentUser, 'table', 'T_PA_DISPLAYCOLS', 'column', 'FISVISIBLED'
go

/*==============================================================*/
/* Index: IDX_PA_DISPLAYCOLS_FID */
/*==============================================================*/
create index IDX_PA_DISPLAYCOLS_FID on T_PA_DISPLAYCOLS (
FID ASC
)
go

alter table T_PA_DISPLAYCOLS
add constraint FK_PA_PAYPERSONPLAN_DISPLAYCOLS foreign key (FID)
references T_PA_PAYPERSONPLAN (FID)
go


T_PA_DISPLAYCOLS(方案显示列从表):键值定义

名称

代码

主要的

PK_PA_DISPLAYCOLS

PK_PA_DISPLAYCOLS

TRUE


T_PA_DISPLAYCOLS(方案显示列从表):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

IDX_PA_DISPLAYCOLS_FID

IDX_PA_DISPLAYCOLS_FID

FALSE

FALSE

FALSE

FALSE

FALSE

T_PA_DISPLAYCOLS(方案显示列从表)