数据表:T_PA_PAYPLANFIXSETENTRY(薪酬方案定薪调薪项目设置明细)

T_PA_PAYPLANFIXSETENTRY(薪酬方案定薪调薪项目设置明细):描述

名称

T_PA_PAYPLANFIXSETENTRY(薪酬方案定薪调薪项目设置明细)

代码

T_PA_PAYPLANFIXSETENTRY

注释

 

模型

PA

主键

PK_PA_PAYPLANFIXSET


T_PA_PAYPLANFIXSETENTRY(薪酬方案定薪调薪项目设置明细):列规格定义

名称

代码

数据类型

长度

强制

注释

薪酬方案id

FID

int

 

TRUE

 

分录主键

FENTRYID

int

 

TRUE

 

顺序号

FORDER

int

 

FALSE

 

定薪调薪设置id

FFIXSETTINGID

int

 

FALSE

 


T_PA_PAYPLANFIXSETENTRY(薪酬方案定薪调薪项目设置明细):脚本代码

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_PAYPLANFIXSETENTRY') and o.name = 'FK_PA_PAYPLAN_FIXSET')
alter table T_PA_PAYPLANFIXSETENTRY
drop constraint FK_PA_PAYPLAN_FIXSET
go

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

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

/*==============================================================*/
/* Table: T_PA_PAYPLANFIXSETENTRY */
/*==============================================================*/
create table T_PA_PAYPLANFIXSETENTRY (
FID int not null default 0,
FENTRYID int not null default 0,
FORDER int null default 0,
FFIXSETTINGID int null default 0,
constraint PK_T_PA_PAYPLANFIXSETENTRY primary key (FENTRYID)
)
go

/*==============================================================*/
/* Index: IDX_PA_PAYPLAN_FIXSET */
/*==============================================================*/
create index IDX_PA_PAYPLAN_FIXSET on T_PA_PAYPLANFIXSETENTRY (
FID ASC
)
go

alter table T_PA_PAYPLANFIXSETENTRY
add constraint FK_PA_PAYPLAN_FIXSET foreign key (FID)
references T_PA_PAYPLAN (FID)
go


T_PA_PAYPLANFIXSETENTRY(薪酬方案定薪调薪项目设置明细):键值定义

名称

代码

主要的

PK_PA_PAYPLANFIXSET

PK_PA_PAYPLANFIXSET

TRUE


T_PA_PAYPLANFIXSETENTRY(薪酬方案定薪调薪项目设置明细):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

IDX_PA_PAYPLAN_FIXSET

IDX_PA_PAYPLAN_FIXSET

FALSE

FALSE

FALSE

TRUE

FALSE

T_PA_PAYPLANFIXSETENTRY(薪酬方案定薪调薪项目设置明细)