SCO供应链协同

## 数据表：T_RPM_RPMODEOBJENTRY(返利模式对象)

### T_RPM_RPMODEOBJENTRY(返利模式对象)：描述

名称 | T_RPM_RPMODEOBJENTRY(返利模式对象)
代码 | T_RPM_RPMODEOBJENTRY
注释 | 返利模式对象
模型 | SCO供应链协同
主键 | PK_RPM_RPMODEOBJENTRY

### T_RPM_RPMODEOBJENTRY(返利模式对象)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键ID | FENTRYID | int |  | TRUE |
返利模式ID | FRPMODEID | int |  | TRUE |
对象类型 | FRPOBJTYPE | varchar(20) | 20 | TRUE | 客户 OR 客户分类
是否选择 | FISCHECKED | char(1) | 1 | TRUE |

### T_RPM_RPMODEOBJENTRY(返利模式对象)：脚本代码

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_RPMODEOBJENTRY') and o.name = 'FK_T_RPM_RP_R_RPMODE__T_RPM_RP')
alter table T_RPM_RPMODEOBJENTRY
drop constraint FK_T_RPM_RP_R_RPMODE__T_RPM_RP
go
if exists (select 1
from sysindexes
where id = object_id('T_RPM_RPMODEOBJENTRY')
and name = 'IDX_RPM_RPMODEOBJE_ID'
and indid > 0
and indid < 255)
drop index T_RPM_RPMODEOBJENTRY.IDX_RPM_RPMODEOBJE_ID
go
if exists (select 1
from sysobjects
where id = object_id('T_RPM_RPMODEOBJENTRY')
and type = 'U')
drop table T_RPM_RPMODEOBJENTRY
go
/*==============================================================*/
/* Table: T_RPM_RPMODEOBJENTRY */
/*==============================================================*/
create table T_RPM_RPMODEOBJENTRY (
FENTRYID int not null default 0,
FRPMODEID int not null default 0,
FRPOBJTYPE varchar(20) not null default '',
FISCHECKED char(1) not null default '',
constraint PK_RPM_RPMODEOBJENTRY primary key (FENTRYID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'返利模式对象',
'user', @CurrentUser, 'table', 'T_RPM_RPMODEOBJENTRY'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'客户 OR 客户分类',
'user', @CurrentUser, 'table', 'T_RPM_RPMODEOBJENTRY', 'column', 'FRPOBJTYPE'
go
/*==============================================================*/
/* Index: IDX_RPM_RPMODEOBJE_ID */
/*==============================================================*/
create index IDX_RPM_RPMODEOBJE_ID on T_RPM_RPMODEOBJENTRY (
FRPMODEID ASC
)
go
alter table T_RPM_RPMODEOBJENTRY
add constraint FK_T_RPM_RP_R_RPMODE__T_RPM_RP foreign key (FENTRYID)
references T_RPM_RPMODE (FRPMODEID)
go

### T_RPM_RPMODEOBJENTRY(返利模式对象)：键值定义

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

### T_RPM_RPMODEOBJENTRY(返利模式对象)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_RPM_RPMODEOBJE_ID | IDX_RPM_RPMODEOBJE_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_RPM_RPMODEOBJENTRY(返利模式对象)

上一页

主页

下一页