MFG制造

## 数据表：T_ENG_EQUIPMENT(设备)

### T_ENG_EQUIPMENT(设备)：描述

名称 | T_ENG_EQUIPMENT(设备)
代码 | T_ENG_EQUIPMENT
注释 |
模型 | MFG制造
主键 | PK_ENG_EQUIPMENT

### T_ENG_EQUIPMENT(设备)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键 | 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 |
当前状态 | FCURRENTSTATUS | char(1) | 1 | FALSE |

### T_ENG_EQUIPMENT(设备)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_ENG_EQUIPMENT')
and name = 'IDX_ENG_EQUIPMENT_CRTDATE'
and indid > 0
and indid < 255)
drop index T_ENG_EQUIPMENT.IDX_ENG_EQUIPMENT_CRTDATE
go
if exists (select 1
from sysindexes
where id = object_id('T_ENG_EQUIPMENT')
and name = 'IDX_ENG_EQUIPMENT_NUMBER'
and indid > 0
and indid < 255)
drop index T_ENG_EQUIPMENT.IDX_ENG_EQUIPMENT_NUMBER
go
if exists (select 1
from sysobjects
where id = object_id('T_ENG_EQUIPMENT')
and type = 'U')
drop table T_ENG_EQUIPMENT
go
/*==============================================================*/
/* Table: T_ENG_EQUIPMENT */
/*==============================================================*/
create table T_ENG_EQUIPMENT (
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,
FCURRENTSTATUS char(1) null,
constraint PK_ENG_EQUIPMENT primary key (FID)
)
go
/*==============================================================*/
/* Index: IDX_ENG_EQUIPMENT_NUMBER */
/*==============================================================*/
create index IDX_ENG_EQUIPMENT_NUMBER on T_ENG_EQUIPMENT (
FNUMBER ASC
)
go
/*==============================================================*/
/* Index: IDX_ENG_EQUIPMENT_CRTDATE */
/*==============================================================*/
create index IDX_ENG_EQUIPMENT_CRTDATE on T_ENG_EQUIPMENT (
FCREATEDATE ASC
)
go

### T_ENG_EQUIPMENT(设备)：键值定义

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

### T_ENG_EQUIPMENT(设备)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_ENG_EQUIPMENT_NUMBER | IDX_ENG_EQUIPMENT_NUMBER | FALSE | FALSE | FALSE | FALSE | FALSE | T_ENG_EQUIPMENT(设备)
IDX_ENG_EQUIPMENT_CRTDATE | IDX_ENG_EQUIPMENT_CRTDATE | FALSE | FALSE | FALSE | FALSE | FALSE | T_ENG_EQUIPMENT(设备)

上一页

主页

下一页