SCO供应链协同

## 数据表：T_DRP_CHANNELSRCMATERIAL(渠道供货物料信息)

### T_DRP_CHANNELSRCMATERIAL(渠道供货物料信息)：描述

名称 | T_DRP_CHANNELSRCMATERIAL(渠道供货物料信息)
代码 | T_DRP_CHANNELSRCMATERIAL
注释 | t_DRP_ChannelSrcMaterial 渠道供货物料信息
模型 | SCO供应链协同
主键 | PK_DRP_CHANNELSRCMATERIAL

### T_DRP_CHANNELSRCMATERIAL(渠道供货物料信息)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键 | FDETAILID | int |  | TRUE |
分录ID | FENTRYID | int |  | FALSE |
序号 | FSEQ | int |  | TRUE |
物料ID | FMATERIALID | int |  | TRUE |
最小订货量 | FMINORDERQTY | decimal(23,10) | 23 | TRUE |
订货批量 | FBATCHQTY | decimal(23,10) | 23 | TRUE |
物料提前期 | FLEADTIME | int |  | TRUE |
单位 | FUNITID | int |  | TRUE |
基本单位 | FBASEUNITID | int |  | TRUE |
基本单位订货批量 | FBASEBATCHQTY | decimal(23,10) | 23 | TRUE |
基本单位最小订货量 | FBASEMINORDERQTY | decimal(23,10) | 23 | TRUE |

### T_DRP_CHANNELSRCMATERIAL(渠道供货物料信息)：脚本代码

if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_DRP_CHANNELSRCMATERIAL') and o.name = 'FK_T_DRP_CH_REFERENCE_T_DRP_CH')
alter table T_DRP_CHANNELSRCMATERIAL
drop constraint FK_T_DRP_CH_REFERENCE_T_DRP_CH
go
if exists (select 1
from sysindexes
where id = object_id('T_DRP_CHANNELSRCMATERIAL')
and name = 'IDX_DRP_CHNSRCMATERIAL_ID'
and indid > 0
and indid < 255)
drop index T_DRP_CHANNELSRCMATERIAL.IDX_DRP_CHNSRCMATERIAL_ID
go
if exists (select 1
from sysobjects
where id = object_id('T_DRP_CHANNELSRCMATERIAL')
and type = 'U')
drop table T_DRP_CHANNELSRCMATERIAL
go
/*==============================================================*/
/* Table: T_DRP_CHANNELSRCMATERIAL */
/*==============================================================*/
create table T_DRP_CHANNELSRCMATERIAL (
FDETAILID int not null default 0,
FENTRYID int null default 0,
FSEQ int not null default 0,
FMATERIALID int not null default 0,
FMINORDERQTY decimal(23,10) not null default 0,
FBATCHQTY decimal(23,10) not null default 0,
FLEADTIME int not null default 0,
FUNITID int not null default 0,
FBASEUNITID int not null default 0,
FBASEBATCHQTY decimal(23,10) not null default 0,
FBASEMINORDERQTY decimal(23,10) not null default 0,
constraint PK_DRP_CHANNELSRCMATERIAL primary key (FDETAILID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
't_DRP_ChannelSrcMaterial 渠道供货物料信息',
'user', @CurrentUser, 'table', 'T_DRP_CHANNELSRCMATERIAL'
go
/*==============================================================*/
/* Index: IDX_DRP_CHNSRCMATERIAL_ID */
/*==============================================================*/
create index IDX_DRP_CHNSRCMATERIAL_ID on T_DRP_CHANNELSRCMATERIAL (
FENTRYID ASC
)
go
alter table T_DRP_CHANNELSRCMATERIAL
add constraint FK_T_DRP_CH_REFERENCE_T_DRP_CH foreign key (FENTRYID)
references T_DRP_CHANNELSOURCE (FENTRYID)
go

### T_DRP_CHANNELSRCMATERIAL(渠道供货物料信息)：键值定义

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

### T_DRP_CHANNELSRCMATERIAL(渠道供货物料信息)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_DRP_CHNSRCMATERIAL_ID | IDX_DRP_CHNSRCMATERIAL_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_DRP_CHANNELSRCMATERIAL(渠道供货物料信息)

上一页

主页

下一页