数据表:t_org_affiliation(组织隶属关系)

t_org_affiliation(组织隶属关系):描述

名称

t_org_affiliation(组织隶属关系)

代码

T_ORG_AFFILIATION

注释

组织隶属关系

模型

BOS

主键

pk_org_affiliation


t_org_affiliation(组织隶属关系):列规格定义

名称

代码

数据类型

长度

强制

注释

内码

FAFFILIATIONID

int

 

TRUE

 

方案代码

FNUMBER

nvarchar(30)

30

TRUE

 

方案类型

FTYPE

int

 

TRUE

 

顶层组织内码

FROOTORGID

int

 

TRUE

 

终止日期

FENDDATE

datetime

 

FALSE

 

启用日期

FSTARTDATE

datetime

 

FALSE

 

状态

FDOCUMENTSTATUS

char(1)

1

TRUE

 

禁用状态

FFORBIDSTATUS

char(1)

1

TRUE

 

创建人

FCREATORID

int

 

TRUE

 

创建日期

FCREATEDATE

datetime

 

FALSE

 

修改人

FMODIFIERID

int

 

TRUE

 

修改日期

FMODIFYDATE

datetime

 

FALSE

 

禁用人

FFORBIDORID

int

 

TRUE

 

禁用日期

FFORBIDDATE

datetime

 

FALSE

 

默认

FISDEFAULT

char(1)

1

TRUE

 

审核人

FAUDITORID

int

 

TRUE

 

审核日期

FAUDITDATE

datetime

 

FALSE

 


t_org_affiliation(组织隶属关系):脚本代码

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

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

/*==============================================================*/
/* Table: T_ORG_AFFILIATION */
/*==============================================================*/
create table T_ORG_AFFILIATION (
FAFFILIATIONID int not null default 0,
FNUMBER nvarchar(30) not null default '',
FTYPE int not null default 0,
FROOTORGID int not null default 0,
FENDDATE datetime null,
FSTARTDATE datetime null,
FDOCUMENTSTATUS char(1) not null default '',
FFORBIDSTATUS char(1) not null default '',
FCREATORID int not null default 0,
FCREATEDATE datetime null,
FMODIFIERID int not null default 0,
FMODIFYDATE datetime null,
FFORBIDORID int not null default 0,
FFORBIDDATE datetime null,
FISDEFAULT char(1) not null default '0',
FAUDITORID int not null default 0,
FAUDITDATE datetime null,
constraint PK_ORG_AFFILIATION primary key (FAFFILIATIONID)
)
go

/*==============================================================*/
/* Index: idx_org_affiliation */
/*==============================================================*/
create index idx_org_affiliation on T_ORG_AFFILIATION (
FNUMBER ASC
)
go


t_org_affiliation(组织隶属关系):键值定义

名称

代码

主要的

pk_org_affiliation

PK_ORG_AFFILIATION

TRUE


t_org_affiliation(组织隶属关系):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

idx_org_affiliation

idx_org_affiliation

FALSE

FALSE

FALSE

FALSE

FALSE

t_org_affiliation(组织隶属关系)