MFG制造

## 数据表：T_ENG_BASEACTIVITY(基本活动)

### T_ENG_BASEACTIVITY(基本活动)：描述

名称 | T_ENG_BASEACTIVITY(基本活动)
代码 | T_ENG_BASEACTIVITY
注释 | 基本活动：系统内置三种基本活动，准备活动、加工活动、拆卸活动
模型 | MFG制造
主键 | PK_ENG_BASEACTIVITY

### T_ENG_BASEACTIVITY(基本活动)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键 | FID | int |  | TRUE |
组织控制字段 | FMASTERID | int |  | TRUE |
创建组织 | FCREATEORGID | int |  | TRUE |
编码 | FNUMBER | nvarchar(80) | 80 | FALSE |
使用组织 | FUSEORGID | int |  | TRUE |
创建人 | FCREATORID | int |  | TRUE |
创建日期 | FCREATEDATE | datetime |  | FALSE |
修改人 | FMODIFIERID | int |  | TRUE |
修改日期 | FMODIFYDATE | datetime |  | FALSE |
审核人 | FAPPROVERID | int |  | TRUE |
审核日期 | FAPPROVEDATE | datetime |  | FALSE |
数据状态 | FDOCUMENTSTATUS | CHAR(1) | 1 | FALSE |
禁用人 | FFORBIDDERID | int |  | TRUE |
禁用日期 | FFORBIDDATE | datetime |  | FALSE |
禁用状态 | FFORBIDSTATUS | CHAR(1) | 1 | FALSE |
生效日期 | FEFFECTDATE | datetime |  | FALSE |
失效日期 | FEXPIREDATE | datetime |  | FALSE |
阶段 | FPHASE | CHAR(2) | 2 | FALSE |
默认值 | FDEFAULTVALUE | int |  | TRUE |
系统预设 | FISSYSTEMSET | CHAR(1) | 1 | FALSE |
计量单位 | FUNITID | int |  | TRUE |
默认活动 | FIsDefaultActivity | CHAR(1) | 1 | FALSE |

### T_ENG_BASEACTIVITY(基本活动)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('dbo.T_ENG_BASEACTIVITY')
and name = 'IDX_ENG_BASEACTIVITY_CRTDATE'
and indid > 0
and indid < 255)
drop index dbo.T_ENG_BASEACTIVITY.IDX_ENG_BASEACTIVITY_CRTDATE
go
if exists (select 1
from sysindexes
where id = object_id('dbo.T_ENG_BASEACTIVITY')
and name = 'IDX_ENG_BASEACTIVITY_USERORGID'
and indid > 0
and indid < 255)
drop index dbo.T_ENG_BASEACTIVITY.IDX_ENG_BASEACTIVITY_USERORGID
go
if exists (select 1
from sysindexes
where id = object_id('dbo.T_ENG_BASEACTIVITY')
and name = 'IDX_ENG_BASEACTIVITY_NUMBER'
and indid > 0
and indid < 255)
drop index dbo.T_ENG_BASEACTIVITY.IDX_ENG_BASEACTIVITY_NUMBER
go
if exists (select 1
from sysobjects
where id = object_id('dbo.T_ENG_BASEACTIVITY')
and type = 'U')
drop table dbo.T_ENG_BASEACTIVITY
go
/*==============================================================*/
/* Table: T_ENG_BASEACTIVITY */
/*==============================================================*/
create table dbo.T_ENG_BASEACTIVITY (
FID int not null default 0,
FMASTERID int not null default 0,
FCREATEORGID int not null default 0,
FNUMBER nvarchar(80) null,
FUSEORGID int not null default 0,
FCREATORID int not null default 0,
FCREATEDATE datetime null,
FMODIFIERID int not null default 0,
FMODIFYDATE datetime null,
FAPPROVERID int not null default 0,
FAPPROVEDATE datetime null,
FDOCUMENTSTATUS CHAR(1) null,
FFORBIDDERID int not null default 0,
FFORBIDDATE datetime null,
FFORBIDSTATUS CHAR(1) null,
FEFFECTDATE datetime null,
FEXPIREDATE datetime null,
FPHASE CHAR(2) null,
FDEFAULTVALUE int not null default 0,
FISSYSTEMSET CHAR(1) null,
FUNITID int not null default 0,
FIsDefaultActivity CHAR(1) null,
constraint pk_ENG_BaseActivity primary key (FID)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
)
ON [PRIMARY]
go
/*==============================================================*/
/* Index: IDX_ENG_BASEACTIVITY_NUMBER */
/*==============================================================*/
create index IDX_ENG_BASEACTIVITY_NUMBER on dbo.T_ENG_BASEACTIVITY (
FNUMBER ASC,
FUSEORGID ASC
)
go
/*==============================================================*/
/* Index: IDX_ENG_BASEACTIVITY_USERORGID */
/*==============================================================*/
create index IDX_ENG_BASEACTIVITY_USERORGID on dbo.T_ENG_BASEACTIVITY (
FUSEORGID ASC
)
go
/*==============================================================*/
/* Index: IDX_ENG_BASEACTIVITY_CRTDATE */
/*==============================================================*/
create index IDX_ENG_BASEACTIVITY_CRTDATE on dbo.T_ENG_BASEACTIVITY (
FCREATEDATE ASC
)
go

### T_ENG_BASEACTIVITY(基本活动)：键值定义

名称 | 代码 | 主要的
PK_ENG_BASEACTIVITY | PK_ENG_BASEACTIVITY | TRUE

### T_ENG_BASEACTIVITY(基本活动)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_ENG_BASEACTIVITY_NUMBER | IDX_ENG_BASEACTIVITY_NUMBER | FALSE | FALSE | FALSE | FALSE | FALSE | T_ENG_BASEACTIVITY(基本活动)
IDX_ENG_BASEACTIVITY_USERORGID | IDX_ENG_BASEACTIVITY_USERORGID | FALSE | FALSE | FALSE | FALSE | FALSE | T_ENG_BASEACTIVITY(基本活动)
IDX_ENG_BASEACTIVITY_CRTDATE | IDX_ENG_BASEACTIVITY_CRTDATE | FALSE | FALSE | FALSE | FALSE | FALSE | T_ENG_BASEACTIVITY(基本活动)

上一页

主页

下一页