数据表:T_PA_PAYPERSONPLAN_L(计薪人检查方案)

T_PA_PAYPERSONPLAN_L(计薪人检查方案):描述

名称

T_PA_PAYPERSONPLAN_L(计薪人检查方案)

代码

T_PA_PAYPERSONPLAN_L

注释

 

模型

PA

主键

PK_PA_PAYPERSONPLAN_L


T_PA_PAYPERSONPLAN_L(计薪人检查方案):列规格定义

名称

代码

数据类型

长度

强制

注释

方案内码

FID

int

 

FALSE

 

FPKID

FPKID

int

 

TRUE

 

多语言内码

FLOCALEID

int

 

FALSE

 

名称

FNAME

nvarchar(80)

80

FALSE

 

备注

FDESCRIPTION

nvarchar(255)

255

FALSE

 


T_PA_PAYPERSONPLAN_L(计薪人检查方案):脚本代码

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_PAYPERSONPLAN_L') and o.name = 'FK_PA_PAYPERSONPLAN_L')
alter table T_PA_PAYPERSONPLAN_L
drop constraint FK_PA_PAYPERSONPLAN_L
go

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

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

/*==============================================================*/
/* Table: T_PA_PAYPERSONPLAN_L */
/*==============================================================*/
create table T_PA_PAYPERSONPLAN_L (
FID int null default 0,
FPKID int not null default 0,
FLOCALEID int null default 0,
FNAME nvarchar(80) null default ' ',
FDESCRIPTION nvarchar(255) null default ' ',
constraint PK_T_PA_PAYPERSONPLAN_L primary key (FPKID)
)
go

/*==============================================================*/
/* Index: IDX_PA_PAYPERSONPLAN_L */
/*==============================================================*/
create index IDX_PA_PAYPERSONPLAN_L on T_PA_PAYPERSONPLAN_L (
FID ASC
)
go

alter table T_PA_PAYPERSONPLAN_L
add constraint FK_PA_PAYPERSONPLAN_L foreign key (FID)
references T_PA_PAYPERSONPLAN (FID)
go


T_PA_PAYPERSONPLAN_L(计薪人检查方案):键值定义

名称

代码

主要的

PK_PA_PAYPERSONPLAN_L

PK_PA_PAYPERSONPLAN_L

TRUE


T_PA_PAYPERSONPLAN_L(计薪人检查方案):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

IDX_PA_PAYPERSONPLAN_L

IDX_PA_PAYPERSONPLAN_L

FALSE

FALSE

FALSE

TRUE

FALSE

T_PA_PAYPERSONPLAN_L(计薪人检查方案)