SCO供应链协同

## 数据表：T_RPM_RPMODEENTRY(返利模式属性说明)

### T_RPM_RPMODEENTRY(返利模式属性说明)：描述

名称 | T_RPM_RPMODEENTRY(返利模式属性说明)
代码 | T_RPM_RPMODEENTRY
注释 | 返利模式属性说明
模型 | SCO供应链协同
主键 | PK_RPM_RPMODEENTRY

### T_RPM_RPMODEENTRY(返利模式属性说明)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键ID | FENTRYID | int |  | TRUE |
返利模式ID | FRPMODEID | int |  | TRUE |
属性字段 | FPROPERTY | nvarchar(30) | 30 | TRUE |
是否支持 | FISSHOW | char(1) | 1 | TRUE |
序号 | FSEQ | int |  | TRUE |

### T_RPM_RPMODEENTRY(返利模式属性说明)：脚本代码

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_RPM_RPMODEENTRY') and o.name = 'FK_T_RPM_RP_R_RPMODE__T_RPM_RP')
alter table T_RPM_RPMODEENTRY
drop constraint FK_T_RPM_RP_R_RPMODE__T_RPM_RP
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_RPM_RPMODEENTRY_L') and o.name = 'FK_T_RPM_RP_R_RPMODEE_T_RPM_RP')
alter table T_RPM_RPMODEENTRY_L
drop constraint FK_T_RPM_RP_R_RPMODEE_T_RPM_RP
go
if exists (select 1
from sysindexes
where id = object_id('T_RPM_RPMODEENTRY')
and name = 'IDX_RPM_RPMODEENTRY_ID'
and indid > 0
and indid < 255)
drop index T_RPM_RPMODEENTRY.IDX_RPM_RPMODEENTRY_ID
go
if exists (select 1
from sysobjects
where id = object_id('T_RPM_RPMODEENTRY')
and type = 'U')
drop table T_RPM_RPMODEENTRY
go
/*==============================================================*/
/* Table: T_RPM_RPMODEENTRY */
/*==============================================================*/
create table T_RPM_RPMODEENTRY (
FENTRYID int not null default 0,
FRPMODEID int not null default 0,
FPROPERTY nvarchar(30) not null default '',
FISSHOW char(1) not null default '',
FSEQ int not null default 0,
constraint PK_RPM_RPMODEENTRY primary key (FENTRYID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'返利模式属性说明',
'user', @CurrentUser, 'table', 'T_RPM_RPMODEENTRY'
go
/*==============================================================*/
/* Index: IDX_RPM_RPMODEENTRY_ID */
/*==============================================================*/
create index IDX_RPM_RPMODEENTRY_ID on T_RPM_RPMODEENTRY (
FRPMODEID ASC
)
go
alter table T_RPM_RPMODEENTRY
add constraint FK_T_RPM_RP_R_RPMODE__T_RPM_RP foreign key (FRPMODEID)
references T_RPM_RPMODE (FRPMODEID)
go

### T_RPM_RPMODEENTRY(返利模式属性说明)：键值定义

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

### T_RPM_RPMODEENTRY(返利模式属性说明)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_RPM_RPMODEENTRY_ID | IDX_RPM_RPMODEENTRY_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_RPM_RPMODEENTRY(返利模式属性说明)

上一页

主页

下一页