SCO供应链协同

## 数据表：T_SPM_PROMOTIONTYPE_L(促销类型多语言)

### T_SPM_PROMOTIONTYPE_L(促销类型多语言)：描述

名称 | T_SPM_PROMOTIONTYPE_L(促销类型多语言)
代码 | T_SPM_PROMOTIONTYPE_L
注释 |
模型 | SCO供应链协同
主键 | PK_SPM_PROMOTIONTYPE_L

### T_SPM_PROMOTIONTYPE_L(促销类型多语言)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
多语言主键ID | FPKID | int |  | TRUE |
促销类型ID | FPROMOTIONTYPEID | int |  | TRUE |
多语言ID | FLOCALEID | int |  | TRUE |
名称 | FNAME | nvarchar(50) | 50 | TRUE |
描述 | FDESCRIPTION | nvarchar(255) | 255 | TRUE |

### T_SPM_PROMOTIONTYPE_L(促销类型多语言)：脚本代码

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_PROMOTIONTYPE_L') and o.name = 'FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR')
alter table T_SPM_PROMOTIONTYPE_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_PROMOTIONTYPE_L')
and name = 'IDX_SPM_PROMOTYPEL_TYPEID'
and indid > 0
and indid < 255)
drop index T_SPM_PROMOTIONTYPE_L.IDX_SPM_PROMOTYPEL_TYPEID
go
if exists (select 1
from sysobjects
where id = object_id('T_SPM_PROMOTIONTYPE_L')
and type = 'U')
drop table T_SPM_PROMOTIONTYPE_L
go
/*==============================================================*/
/* Table: T_SPM_PROMOTIONTYPE_L */
/*==============================================================*/
create table T_SPM_PROMOTIONTYPE_L (
FPKID int not null default 0,
FPROMOTIONTYPEID int not null default 0,
FLOCALEID int not null default 0,
FNAME nvarchar(50) not null default '',
FDESCRIPTION nvarchar(255) not null default '',
constraint PK_SPM_PROMOTIONTYPE_L primary key (FPKID)
)
go
/*==============================================================*/
/* Index: IDX_SPM_PROMOTYPEL_TYPEID */
/*==============================================================*/
create index IDX_SPM_PROMOTYPEL_TYPEID on T_SPM_PROMOTIONTYPE_L (
FPROMOTIONTYPEID ASC
)
go
alter table T_SPM_PROMOTIONTYPE_L
add constraint FK_T_SPM_PR_R_DRP_PRO_T_SPM_PR foreign key (FPROMOTIONTYPEID)
references T_SPM_PROMOTIONTYPE (FPROMOTIONTYPEID)
go

### T_SPM_PROMOTIONTYPE_L(促销类型多语言)：键值定义

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

### T_SPM_PROMOTIONTYPE_L(促销类型多语言)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_SPM_PROMOTYPEL_TYPEID | IDX_SPM_PROMOTYPEL_TYPEID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SPM_PROMOTIONTYPE_L(促销类型多语言)

上一页

主页

下一页