数据表:t_wf_Draft(草稿箱)

t_wf_Draft(草稿箱):描述

名称

t_wf_Draft(草稿箱)

代码

t_wf_Draft

注释

 

模型

BOS

主键

pk_wf_Draft


t_wf_Draft(草稿箱):列规格定义

名称

代码

数据类型

长度

强制

注释

唯一标识

FID

int

 

TRUE

 

流程配置内码

FTMPID

int

 

TRUE

模板ID = 流程配置内码

单据内码

FPKVALUE

varchar(36)

36

TRUE

对应业务对象实例的内码,如采购订单的内码

用户内码

FUSERID

int

 

TRUE

 

组织内码

FORGID

int

 

TRUE

 

创建时间

FCREATEDTIME

datetime

 

TRUE

 


t_wf_Draft(草稿箱):脚本代码

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

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

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

/*==============================================================*/
/* Table: t_wf_Draft */
/*==============================================================*/
create table t_wf_Draft (
FID int not null default 0,
FTMPID int not null default 0,
FPKVALUE varchar(36) not null default '',
FUSERID int not null default 0,
FORGID int not null default 0,
FCREATEDTIME datetime not null default getdate(),
constraint PK_WF_DRAFT primary key (FID)
)
go

/*==============================================================*/
/* Index: idx_wf_Draft_FPKValue */
/*==============================================================*/
create index idx_wf_Draft_FPKValue on t_wf_Draft (
FPKVALUE ASC,
FTMPID ASC
)
go

/*==============================================================*/
/* Index: idx_wf_Draft_FUserID */
/*==============================================================*/
create index idx_wf_Draft_FUserID on t_wf_Draft (
FUSERID ASC
)
go


t_wf_Draft(草稿箱):键值定义

名称

代码

主要的

pk_wf_Draft

pk_wf_Draft

TRUE


t_wf_Draft(草稿箱):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

idx_wf_Draft_FPKValue

idx_wf_Draft_FPKValue

FALSE

FALSE

FALSE

FALSE

FALSE

t_wf_Draft(草稿箱)

idx_wf_Draft_FUserID

idx_wf_Draft_FUserID

FALSE

FALSE

FALSE

FALSE

FALSE

t_wf_Draft(草稿箱)