数据表:T_PA_PAYPLAN[薪酬方案]

T_PA_PAYPLAN[薪酬方案]:描述

名称

T_PA_PAYPLAN[薪酬方案]

代码

T_PA_PAYPLAN

注释

 

模型

PA

主键

PK_PA_PAYPLAN


T_PA_PAYPLAN[薪酬方案]:列规格定义

名称

代码

数据类型

长度

强制

注释

内码

FID

int

 

TRUE

 

方案编码

FNUMBER

nvarchar(30)

30

TRUE

 

FMASTERID

FMASTERID

int

 

FALSE

 

薪资期间方案

FPAYSCHEMEID

int

 

TRUE

 

起始薪资期间

FBEGINPERIODID

int

 

TRUE

 

当前薪资期间

FCURPAYPERIOD

int

 

TRUE

 

计薪当前次

FTIME

int

 

TRUE

 

币种

FCURRENCYID

int

 

TRUE

 

薪酬管理中心

FMRGCENTERID

int

 

TRUE

 

创建组织

FCREATEORGID

int

 

FALSE

 

使用组织

FUSEORGID

int

 

FALSE

 

创建人

FCREATORID

int

 

FALSE

 

创建日期

FCREATEDATE

datetime

 

FALSE

 

修改人

FMODIFIERID

int

 

FALSE

 

修改日期

FMODIFYDATE

datetime

 

FALSE

 

审核人

FAUDITORID

int

 

FALSE

 

审核日期

FAUDITDATE

datetime

 

FALSE

 

禁用人

FFORBIDDERID

int

 

FALSE

 

禁用日期

FFORBIDDATE

datetime

 

FALSE

 

数据状态

FDOCUMENTSTATUS

char(1)

1

FALSE

 

禁用状态

FFORBIDSTATUS

char(1)

1

FALSE

 


T_PA_PAYPLAN[薪酬方案]:脚本代码

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 sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_PA_PAYPLANITEMENTRY') and o.name = 'FK_PA_PAYPLAN_PAYITEM')
alter table T_PA_PAYPLANITEMENTRY
drop constraint FK_PA_PAYPLAN_PAYITEM
go

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_PAYPLAN')
and name = 'IDX_PA_PAYPLAN'
and indid > 0
and indid < 255)
drop index T_PA_PAYPLAN.IDX_PA_PAYPLAN
go

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

/*==============================================================*/
/* Table: T_PA_PAYPLAN */
/*==============================================================*/
create table T_PA_PAYPLAN (
FID int not null default 0,
FNUMBER nvarchar(30) not null default ' ',
FMASTERID int null default 0,
FPAYSCHEMEID int not null default 0,
FBEGINPERIODID int not null default 0,
FCURPAYPERIOD int not null default 0,
FTIME int not null default 1,
FCURRENCYID int not null default 0,
FMRGCENTERID int not null default 0,
FCREATEORGID int null,
FUSEORGID int null,
FCREATORID int null,
FCREATEDATE datetime null,
FMODIFIERID int null,
FMODIFYDATE datetime null,
FAUDITORID int null,
FAUDITDATE datetime null,
FFORBIDDERID int null,
FFORBIDDATE datetime null,
FDOCUMENTSTATUS char(1) null,
FFORBIDSTATUS char(1) null,
constraint PK_PA_PAYPLAN primary key (FID)
)
go

/*==============================================================*/
/* Index: IDX_PA_PAYPLAN */
/*==============================================================*/
create index IDX_PA_PAYPLAN on T_PA_PAYPLAN (
FMRGCENTERID ASC
)
go


T_PA_PAYPLAN[薪酬方案]:键值定义

名称

代码

主要的

PK_PA_PAYPLAN

PK_PA_PAYPLAN

TRUE


T_PA_PAYPLAN[薪酬方案]:索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

IDX_PA_PAYPLAN

IDX_PA_PAYPLAN

FALSE

FALSE

FALSE

FALSE

FALSE

T_PA_PAYPLAN[薪酬方案]