MFG制造

## 数据表：T_PLN_FORECAST(预测单表头)

### T_PLN_FORECAST(预测单表头)：描述

名称 | T_PLN_FORECAST(预测单表头)
代码 | T_PLN_FORECAST
注释 |
模型 | MFG制造
主键 | pk_PLN_FORECAST

### T_PLN_FORECAST(预测单表头)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
内码 | FID | int |  | TRUE |
事务类型 | FFORMID | varchar(36) | 36 | FALSE |
单据类型 | FBILLTYPEID | varchar(36) | 36 | FALSE |
单据编号 | FBILLNO | nvarchar(80) | 80 | FALSE |
预测组织 | FFOREORGID | int |  | FALSE |
单据状态 | FDOCUMENTSTATUS | CHAR(1) | 1 | FALSE |
日期 | FDATE | datetime |  | FALSE |
创建人 | FCREATORID | int |  | FALSE |
创建日期 | FCREATEDATE | datetime |  | FALSE |
修改人 | FMODIFIERID | int |  | FALSE |
修改日期 | FMODIFYDATE | datetime |  | FALSE |
审核人 | FAPPROVERID | int |  | FALSE |
审核日期 | FAPPROVEDATE | datetime |  | FALSE |
作废人 | FCANCELER | int |  | FALSE |
作废日期 | FCANCELDATE | datetime |  | FALSE |
作废状态 | FCANCELSTATUS | char(1) | 1 | FALSE |

### T_PLN_FORECAST(预测单表头)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_PLN_FORECAST')
and name = 'IDX_PLN_FORECAST_DATE'
and indid > 0
and indid < 255)
drop index T_PLN_FORECAST.IDX_PLN_FORECAST_DATE
go
if exists (select 1
from sysindexes
where id = object_id('T_PLN_FORECAST')
and name = 'idx_PLN_FORECAST_FFOREORGID'
and indid > 0
and indid < 255)
drop index T_PLN_FORECAST.idx_PLN_FORECAST_FFOREORGID
go
if exists (select 1
from sysindexes
where id = object_id('T_PLN_FORECAST')
and name = 'idx_PLN_FORECAST_FBILLNO'
and indid > 0
and indid < 255)
drop index T_PLN_FORECAST.idx_PLN_FORECAST_FBILLNO
go
if exists (select 1
from sysindexes
where id = object_id('T_PLN_FORECAST')
and name = 'idx_PLN_FORECAST_FBILLTYPEID'
and indid > 0
and indid < 255)
drop index T_PLN_FORECAST.idx_PLN_FORECAST_FBILLTYPEID
go
if exists (select 1
from sysobjects
where id = object_id('T_PLN_FORECAST')
and type = 'U')
drop table T_PLN_FORECAST
go
/*==============================================================*/
/* Table: T_PLN_FORECAST */
/*==============================================================*/
create table T_PLN_FORECAST (
FID int not null default 0,
FFORMID varchar(36) null,
FBILLTYPEID varchar(36) null,
FBILLNO nvarchar(80) null,
FFOREORGID int null,
FDOCUMENTSTATUS CHAR(1) null,
FDATE datetime null,
FCREATORID int null,
FCREATEDATE datetime null,
FMODIFIERID int null,
FMODIFYDATE datetime null,
FAPPROVERID int null,
FAPPROVEDATE datetime null,
FCANCELER int null,
FCANCELDATE datetime null,
FCANCELSTATUS char(1) null,
constraint PK_PLN_FORECAST primary key (FID)
)
go
/*==============================================================*/
/* Index: idx_PLN_FORECAST_FBILLTYPEID */
/*==============================================================*/
create index idx_PLN_FORECAST_FBILLTYPEID on T_PLN_FORECAST (
FBILLTYPEID ASC
)
go
/*==============================================================*/
/* Index: idx_PLN_FORECAST_FBILLNO */
/*==============================================================*/
create index idx_PLN_FORECAST_FBILLNO on T_PLN_FORECAST (
FBILLNO ASC
)
go
/*==============================================================*/
/* Index: idx_PLN_FORECAST_FFOREORGID */
/*==============================================================*/
create index idx_PLN_FORECAST_FFOREORGID on T_PLN_FORECAST (
FFOREORGID ASC
)
go
/*==============================================================*/
/* Index: IDX_PLN_FORECAST_DATE */
/*==============================================================*/
create index IDX_PLN_FORECAST_DATE on T_PLN_FORECAST (
FDATE ASC
)
go

### T_PLN_FORECAST(预测单表头)：键值定义

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

### T_PLN_FORECAST(预测单表头)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
idx_PLN_FORECAST_FBILLTYPEID | idx_PLN_FORECAST_FBILLTYPEID | FALSE | FALSE | FALSE | FALSE | FALSE | T_PLN_FORECAST(预测单表头)
idx_PLN_FORECAST_FBILLNO | idx_PLN_FORECAST_FBILLNO | FALSE | FALSE | FALSE | FALSE | FALSE | T_PLN_FORECAST(预测单表头)
idx_PLN_FORECAST_FFOREORGID | idx_PLN_FORECAST_FFOREORGID | FALSE | FALSE | FALSE | FALSE | FALSE | T_PLN_FORECAST(预测单表头)
IDX_PLN_FORECAST_DATE | IDX_PLN_FORECAST_DATE | FALSE | FALSE | FALSE | FALSE | FALSE | T_PLN_FORECAST(预测单表头)

上一页

主页

下一页