SCO供应链协同

## 数据表：T_DRP_CHANNELSOURCE(渠道供货信息)

### T_DRP_CHANNELSOURCE(渠道供货信息)：描述

名称 | T_DRP_CHANNELSOURCE(渠道供货信息)
代码 | T_DRP_CHANNELSOURCE
注释 | 渠道供货信息
模型 | SCO供应链协同
主键 | PK_DRP_CHANNELSOURCE

### T_DRP_CHANNELSOURCE(渠道供货信息)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
分录ID | FENTRYID | int |  | TRUE |
渠道ID | FCHANNELID | int |  | TRUE |
供货类型(作废) | FSOURCETYPE | varchar(36) | 36 | TRUE |
供货单位(作废) | FSOURCESUPPLIERID | int |  | TRUE |
是否默认(作废) | FISDEFAULT | char(1) | 1 | TRUE |
提前期(作废) | FLEADTIME | int |  | TRUE |
备注 | FNOTE | nvarchar(255) | 255 | FALSE |
序号 | FSEQ | int |  | TRUE |
供货仓库组织 | FSTOCKORGID | int |  | TRUE |
供货仓库 | FSTOCKID | int |  | TRUE |
要货渠道ID | FREQUESTID | int |  | TRUE |
组织间结算价目表 | FSETTLETID | int |  | TRUE |

### T_DRP_CHANNELSOURCE(渠道供货信息)：脚本代码

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_CHANNELSOURCE') and o.name = 'FK_T_DRP_CH_REFERENCE_T_DRP_CH')
alter table T_DRP_CHANNELSOURCE
drop constraint FK_T_DRP_CH_REFERENCE_T_DRP_CH
go
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_CHANNELSOURCE')
and name = 'IDX_DRP_CHANNELSOURCE_ID'
and indid > 0
and indid < 255)
drop index T_DRP_CHANNELSOURCE.IDX_DRP_CHANNELSOURCE_ID
go
if exists (select 1
from sysobjects
where id = object_id('T_DRP_CHANNELSOURCE')
and type = 'U')
drop table T_DRP_CHANNELSOURCE
go
/*==============================================================*/
/* Table: T_DRP_CHANNELSOURCE */
/*==============================================================*/
create table T_DRP_CHANNELSOURCE (
FENTRYID int not null default 0,
FCHANNELID int not null default 0,
FSOURCETYPE varchar(36) not null default '',
FSOURCESUPPLIERID int not null default 0,
FISDEFAULT char(1) not null default '0',
FLEADTIME int not null default 0,
FNOTE nvarchar(255) null,
FSEQ int not null default 0,
FSTOCKORGID int not null default 0,
FSTOCKID int not null default 0,
FREQUESTID int not null default 0,
FSETTLETID int not null default 0,
constraint PK_DRP_CHANNELSOURCE primary key (FENTRYID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'渠道供货信息',
'user', @CurrentUser, 'table', 'T_DRP_CHANNELSOURCE'
go
/*==============================================================*/
/* Index: IDX_DRP_CHANNELSOURCE_ID */
/*==============================================================*/
create index IDX_DRP_CHANNELSOURCE_ID on T_DRP_CHANNELSOURCE (
FCHANNELID ASC
)
go
alter table T_DRP_CHANNELSOURCE
add constraint FK_T_DRP_CH_REFERENCE_T_DRP_CH foreign key (FCHANNELID)
references T_DRP_CHANNEL (FCHANNELID)
go

### T_DRP_CHANNELSOURCE(渠道供货信息)：键值定义

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

### T_DRP_CHANNELSOURCE(渠道供货信息)：索引定义

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

上一页

主页

下一页