SCO供应链协同

## 数据表：T_SPM_PROMOTIONMODEENTRY(促销模式分录)

### T_SPM_PROMOTIONMODEENTRY(促销模式分录)：描述

名称 | T_SPM_PROMOTIONMODEENTRY(促销模式分录)
代码 | T_SPM_PROMOTIONMODEENTRY
注释 | 促销模式分录
模型 | SCO供应链协同
主键 | PK_SPM_PROMOTIONMODEENTRY

### T_SPM_PROMOTIONMODEENTRY(促销模式分录)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
分录内码ID | FENTRYID | int |  | TRUE |
单据ID | FPROMOTIONMODEID | int |  | TRUE |
序号 | FSEQ | int |  | TRUE |
属性 | FPROPERTY | nvarchar(50) | 50 | TRUE |
是否显示 | FISSHOW | char(1) | 1 | TRUE |

### T_SPM_PROMOTIONMODEENTRY(促销模式分录)：脚本代码

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_PROMOTIONMODEENTRY') and o.name = 'FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR')
alter table T_SPM_PROMOTIONMODEENTRY
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_PROMOTIONMODEENTRY_L') and o.name = 'FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR')
alter table T_SPM_PROMOTIONMODEENTRY_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_PROMOTIONMODEENTRY')
and name = 'IDX_SPM_PROMOTIONMODE_MID'
and indid > 0
and indid < 255)
drop index T_SPM_PROMOTIONMODEENTRY.IDX_SPM_PROMOTIONMODE_MID
go
if exists (select 1
from sysobjects
where id = object_id('T_SPM_PROMOTIONMODEENTRY')
and type = 'U')
drop table T_SPM_PROMOTIONMODEENTRY
go
/*==============================================================*/
/* Table: T_SPM_PROMOTIONMODEENTRY */
/*==============================================================*/
create table T_SPM_PROMOTIONMODEENTRY (
FENTRYID int not null default 0,
FPROMOTIONMODEID int not null default 0,
FSEQ int not null default 0,
FPROPERTY nvarchar(50) not null default '',
FISSHOW char(1) not null default '',
constraint PK_SPM_PROMOTIONMODEENTRY primary key (FENTRYID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'促销模式分录',
'user', @CurrentUser, 'table', 'T_SPM_PROMOTIONMODEENTRY'
go
/*==============================================================*/
/* Index: IDX_SPM_PROMOTIONMODE_MID */
/*==============================================================*/
create index IDX_SPM_PROMOTIONMODE_MID on T_SPM_PROMOTIONMODEENTRY (
FPROMOTIONMODEID ASC
)
go
alter table T_SPM_PROMOTIONMODEENTRY
add constraint FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR foreign key (FPROMOTIONMODEID)
references T_SPM_PROMOTIONMODE (FPROMOTIONMODEID)
go

### T_SPM_PROMOTIONMODEENTRY(促销模式分录)：键值定义

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

### T_SPM_PROMOTIONMODEENTRY(促销模式分录)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_SPM_PROMOTIONMODE_MID | IDX_SPM_PROMOTIONMODE_MID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SPM_PROMOTIONMODEENTRY(促销模式分录)

上一页

主页

下一页