SCO供应链协同

## 数据表：T_SPM_PROMOTIONWAY(促销方式)

### T_SPM_PROMOTIONWAY(促销方式)：描述

名称 | T_SPM_PROMOTIONWAY(促销方式)
代码 | T_SPM_PROMOTIONWAY
注释 |
模型 | SCO供应链协同
主键 | PK_SPM_PROMOTIONWAY

### T_SPM_PROMOTIONWAY(促销方式)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键ID | FPROMOTIONWAYID | int |  | TRUE |
编码 | FNUMBER | nvarchar(50) | 50 | TRUE |
禁用状态 | FFORBIDSTATUS | char(1) | 1 | TRUE |
是否系统预置 | FISSYSTEM | char(1) | 1 | TRUE |
促销类型 | FPROMOTIONTYPEID | int |  | TRUE |

### T_SPM_PROMOTIONWAY(促销方式)：脚本代码

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_SPM_PROMOTIONMODE') and o.name = 'FK_T_SPM_PR_REFERENCE_T_SPM_PR')
alter table T_SPM_PROMOTIONMODE
drop constraint FK_T_SPM_PR_REFERENCE_T_SPM_PR
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_SPM_PROMOTIONWAY') and o.name = 'FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR')
alter table T_SPM_PROMOTIONWAY
drop constraint FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR
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_SPM_PROMOTIONWAY_L') and o.name = 'FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR')
alter table T_SPM_PROMOTIONWAY_L
drop constraint FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR
go
if exists (select 1
from sysindexes
where id = object_id('T_SPM_PROMOTIONWAY')
and name = 'IDX_SPM_PROMOWAY_NUM'
and indid > 0
and indid < 255)
drop index T_SPM_PROMOTIONWAY.IDX_SPM_PROMOWAY_NUM
go
if exists (select 1
from sysobjects
where id = object_id('T_SPM_PROMOTIONWAY')
and type = 'U')
drop table T_SPM_PROMOTIONWAY
go
/*==============================================================*/
/* Table: T_SPM_PROMOTIONWAY */
/*==============================================================*/
create table T_SPM_PROMOTIONWAY (
FPROMOTIONWAYID int not null default 0,
FNUMBER nvarchar(50) not null default '',
FFORBIDSTATUS char(1) not null default '',
FISSYSTEM char(1) not null default '',
FPROMOTIONTYPEID int not null default 0,
constraint PK_SPM_PROMOTIONWAY primary key (FPROMOTIONWAYID)
)
go
/*==============================================================*/
/* Index: IDX_SPM_PROMOWAY_NUM */
/*==============================================================*/
create index IDX_SPM_PROMOWAY_NUM on T_SPM_PROMOTIONWAY (
FNUMBER ASC,
FFORBIDSTATUS ASC
)
go
alter table T_SPM_PROMOTIONWAY
add constraint FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR foreign key (FPROMOTIONTYPEID)
references T_SPM_PROMOTIONTYPE (FPROMOTIONTYPEID)
go

### T_SPM_PROMOTIONWAY(促销方式)：键值定义

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

### T_SPM_PROMOTIONWAY(促销方式)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_SPM_PROMOWAY_NUM | IDX_SPM_PROMOWAY_NUM | FALSE | FALSE | FALSE | FALSE | FALSE | T_SPM_PROMOTIONWAY(促销方式)

上一页

主页

下一页