MFG制造

## 数据表：T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)

### T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)：描述

名称 | T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)
代码 | T_ENG_FLOWLINERELATEBOM
注释 |
模型 | MFG制造
主键 | pk_ENG_FlowLineRelateBom

### T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键 | FID | int |  | TRUE |
组织控制字段 | FMasterId | int |  | TRUE |
数据状态 | FDOCUMENTSTATUS | char(1) | 1 | FALSE |
禁用状态 | FFORBIDSTATUS | char(1) | 1 | FALSE |
编码 | FNUMBER | nvarchar(80) | 80 | FALSE |
创建组织 | FCREATEORGID | int |  | FALSE |
使用组织 | FUSEORGID | int |  | TRUE |
创建人 | FCREATORID | int |  | FALSE |
修改人 | FMODIFIERID | int |  | FALSE |
创建日期 | FCREATEDATE | datetime |  | FALSE |
修改日期 | FMODIFYDATE | datetime |  | FALSE |
禁用人 | FFORBIDDERID | int |  | FALSE |
审核人 | FAPPROVERID | int |  | FALSE |
禁用日期 | FFORBIDDATE | datetime |  | FALSE |
审核日期 | FAPPROVEDATE | datetime |  | FALSE |
物料 | FMATERIALID | int |  | TRUE |
批量定义 | FLOTDEFINE | char(1) | 1 | FALSE |
生产批量 | FPRODUCTIONLOT | decimal(23,10) | 23 | TRUE |
批量时间 | FLOTTIME | decimal(23,10) | 23 | TRUE |
生产批量单位 | FPRODUCTIONLOTUNIT | int |  | FALSE |
批量时间单位 | FLOTTIMEUNIT | int |  | FALSE |
分组字段 | FLINEBOMGROUP | int |  | FALSE |
生产线 | FPRODUCTLINEID | int |  | TRUE |

### T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('dbo.T_ENG_FLOWLINERELATEBOM')
and name = 'IDX_ENG_FLR_GROUP'
and indid > 0
and indid < 255)
drop index dbo.T_ENG_FLOWLINERELATEBOM.IDX_ENG_FLR_GROUP
go
if exists (select 1
from sysindexes
where id = object_id('dbo.T_ENG_FLOWLINERELATEBOM')
and name = 'IDX_ENG_FLR_PRDLINEID'
and indid > 0
and indid < 255)
drop index dbo.T_ENG_FLOWLINERELATEBOM.IDX_ENG_FLR_PRDLINEID
go
if exists (select 1
from sysindexes
where id = object_id('dbo.T_ENG_FLOWLINERELATEBOM')
and name = 'IDX_ENG_FLR_MTRLID'
and indid > 0
and indid < 255)
drop index dbo.T_ENG_FLOWLINERELATEBOM.IDX_ENG_FLR_MTRLID
go
if exists (select 1
from sysindexes
where id = object_id('dbo.T_ENG_FLOWLINERELATEBOM')
and name = 'IDX_ENG_FLR_USERORGID'
and indid > 0
and indid < 255)
drop index dbo.T_ENG_FLOWLINERELATEBOM.IDX_ENG_FLR_USERORGID
go
if exists (select 1
from sysobjects
where id = object_id('dbo.T_ENG_FLOWLINERELATEBOM')
and type = 'U')
drop table dbo.T_ENG_FLOWLINERELATEBOM
go
/*==============================================================*/
/* Table: T_ENG_FLOWLINERELATEBOM */
/*==============================================================*/
create table dbo.T_ENG_FLOWLINERELATEBOM (
FID int not null default 0,
FMasterId int not null default 0,
FDOCUMENTSTATUS char(1) null,
FFORBIDSTATUS char(1) null,
FNUMBER nvarchar(80) null,
FCREATEORGID int null,
FUSEORGID int not null default 0,
FCREATORID int null,
FMODIFIERID int null,
FCREATEDATE datetime null,
FMODIFYDATE datetime null,
FFORBIDDERID int null,
FAPPROVERID int null,
FFORBIDDATE datetime null,
FAPPROVEDATE datetime null,
FMATERIALID int not null default 0,
FLOTDEFINE char(1) null,
FPRODUCTIONLOT decimal(23,10) not null default 0,
FLOTTIME decimal(23,10) not null,
FPRODUCTIONLOTUNIT int null,
FLOTTIMEUNIT int null,
FLINEBOMGROUP int null,
FPRODUCTLINEID int not null default 0,
constraint pk_ENG_FlowLineRelateBom primary key (FID)
on "PRIMARY"
)
on "PRIMARY"
go
/*==============================================================*/
/* Index: IDX_ENG_FLR_USERORGID */
/*==============================================================*/
create index IDX_ENG_FLR_USERORGID on dbo.T_ENG_FLOWLINERELATEBOM (
FUSEORGID ASC
)
go
/*==============================================================*/
/* Index: IDX_ENG_FLR_MTRLID */
/*==============================================================*/
create index IDX_ENG_FLR_MTRLID on dbo.T_ENG_FLOWLINERELATEBOM (
FMATERIALID ASC
)
go
/*==============================================================*/
/* Index: IDX_ENG_FLR_PRDLINEID */
/*==============================================================*/
create index IDX_ENG_FLR_PRDLINEID on dbo.T_ENG_FLOWLINERELATEBOM (
FPRODUCTLINEID ASC
)
go
/*==============================================================*/
/* Index: IDX_ENG_FLR_GROUP */
/*==============================================================*/
create index IDX_ENG_FLR_GROUP on dbo.T_ENG_FLOWLINERELATEBOM (
FLINEBOMGROUP ASC
)
go

### T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)：键值定义

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

### T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_ENG_FLR_USERORGID | IDX_ENG_FLR_USERORGID | FALSE | FALSE | FALSE | FALSE | FALSE | T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)
IDX_ENG_FLR_MTRLID | IDX_ENG_FLR_MTRLID | FALSE | FALSE | FALSE | FALSE | FALSE | T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)
IDX_ENG_FLR_PRDLINEID | IDX_ENG_FLR_PRDLINEID | FALSE | FALSE | FALSE | FALSE | FALSE | T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)
IDX_ENG_FLR_GROUP | IDX_ENG_FLR_GROUP | FALSE | FALSE | FALSE | FALSE | FALSE | T_ENG_FLOWLINERELATEBOM(流程生产线与物料关系)

上一页

主页

下一页