SCO供应链协同

## 数据表：T_DRP_CHANNELRECEIVE(渠道网络--收货渠道)

### T_DRP_CHANNELRECEIVE(渠道网络--收货渠道)：描述

名称 | T_DRP_CHANNELRECEIVE(渠道网络--收货渠道)
代码 | T_DRP_CHANNELRECEIVE
注释 | 渠道网络--收货渠道
模型 | SCO供应链协同
主键 | PK_DRP_CHANNELRECEIVE

### T_DRP_CHANNELRECEIVE(渠道网络--收货渠道)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键ID | FPKID | int |  | TRUE |
渠道ID | FCHANNELID | int |  | TRUE |
收货渠道 | FRECEIVECHANNELID | int |  | TRUE |

### T_DRP_CHANNELRECEIVE(渠道网络--收货渠道)：脚本代码

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_CHANNELRECEIVE') and o.name = 'FK_T_DRP_CH_REFERENCE_T_DRP_CH')
alter table T_DRP_CHANNELRECEIVE
drop constraint FK_T_DRP_CH_REFERENCE_T_DRP_CH
go
if exists (select 1
from sysindexes
where id = object_id('T_DRP_CHANNELRECEIVE')
and name = 'IDX_DRP_CHANNELRECEIVE_ID'
and indid > 0
and indid < 255)
drop index T_DRP_CHANNELRECEIVE.IDX_DRP_CHANNELRECEIVE_ID
go
if exists (select 1
from sysobjects
where id = object_id('T_DRP_CHANNELRECEIVE')
and type = 'U')
drop table T_DRP_CHANNELRECEIVE
go
/*==============================================================*/
/* Table: T_DRP_CHANNELRECEIVE */
/*==============================================================*/
create table T_DRP_CHANNELRECEIVE (
FPKID int not null default 0,
FCHANNELID int not null default 0,
FRECEIVECHANNELID int not null default 0,
constraint PK_DRP_CHANNELRECEIVE primary key (FPKID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'渠道网络--收货渠道',
'user', @CurrentUser, 'table', 'T_DRP_CHANNELRECEIVE'
go
/*==============================================================*/
/* Index: IDX_DRP_CHANNELRECEIVE_ID */
/*==============================================================*/
create index IDX_DRP_CHANNELRECEIVE_ID on T_DRP_CHANNELRECEIVE (
FCHANNELID ASC
)
go
alter table T_DRP_CHANNELRECEIVE
add constraint FK_T_DRP_CH_REFERENCE_T_DRP_CH foreign key ()
references T_DRP_CHANNEL (FCHANNELID)
go

### T_DRP_CHANNELRECEIVE(渠道网络--收货渠道)：键值定义

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

### T_DRP_CHANNELRECEIVE(渠道网络--收货渠道)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_DRP_CHANNELRECEIVE_ID | IDX_DRP_CHANNELRECEIVE_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_DRP_CHANNELRECEIVE(渠道网络--收货渠道)

上一页

主页

下一页