数据表:T_PA_PAYPLANSTDENTRY(薪酬方案薪酬标准方案明细)

T_PA_PAYPLANSTDENTRY(薪酬方案薪酬标准方案明细):描述

名称

T_PA_PAYPLANSTDENTRY(薪酬方案薪酬标准方案明细)

代码

T_PA_PAYPLANSTDENTRY

注释

 

模型

PA

主键

PK_PA_PAYPLANSTD


T_PA_PAYPLANSTDENTRY(薪酬方案薪酬标准方案明细):列规格定义

名称

代码

数据类型

长度

强制

注释

薪酬方案id

FID

int

 

TRUE

 

顺序号

FORDER

int

 

FALSE

 

分录主键

FENTRYID

int

 

TRUE

 

薪酬标准方案id

FSTDSCHEMEID

int

 

FALSE

 

是否默认方案

FISDEFAULT

char(1)

1

FALSE

 


T_PA_PAYPLANSTDENTRY(薪酬方案薪酬标准方案明细):脚本代码

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_PAYPLANSTDENTRY') and o.name = 'FK_PA_PAYPLAN_STDSCHEME')
alter table T_PA_PAYPLANSTDENTRY
drop constraint FK_PA_PAYPLAN_STDSCHEME
go

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

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

/*==============================================================*/
/* Table: T_PA_PAYPLANSTDENTRY */
/*==============================================================*/
create table T_PA_PAYPLANSTDENTRY (
FID int not null default 0,
FORDER int null default 0,
FENTRYID int not null default 0,
FSTDSCHEMEID int null default 0,
FISDEFAULT char(1) null,
constraint PK_T_PA_PAYPLANSTDENTRY primary key (FENTRYID)
)
go

/*==============================================================*/
/* Index: IDX_PA_PAYPLANSTD */
/*==============================================================*/
create index IDX_PA_PAYPLANSTD on T_PA_PAYPLANSTDENTRY (
FID ASC
)
go

alter table T_PA_PAYPLANSTDENTRY
add constraint FK_PA_PAYPLAN_STDSCHEME foreign key (FID)
references T_PA_PAYPLAN (FID)
go


T_PA_PAYPLANSTDENTRY(薪酬方案薪酬标准方案明细):键值定义

名称

代码

主要的

PK_PA_PAYPLANSTD

PK_PA_PAYPLANSTD

TRUE


T_PA_PAYPLANSTDENTRY(薪酬方案薪酬标准方案明细):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

IDX_PA_PAYPLANSTD

IDX_PA_PAYPLANSTD

FALSE

FALSE

FALSE

TRUE

FALSE

T_PA_PAYPLANSTDENTRY(薪酬方案薪酬标准方案明细)