SCO供应链协同

## 数据表：T_RPM_RPMODEBASISEENTRY(返利模式依据)

### T_RPM_RPMODEBASISEENTRY(返利模式依据)：描述

名称 | T_RPM_RPMODEBASISEENTRY(返利模式依据)
代码 | T_RPM_RPMODEBASISEENTRY
注释 | 返利模式依据
模型 | SCO供应链协同
主键 | PK_RPM_RPMODEBASISEENTRY

### T_RPM_RPMODEBASISEENTRY(返利模式依据)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键ID | FENTRYID | int |  | TRUE |
返利模式ID | FRPMODEID | int |  | TRUE |
单据 | FBILLTYPE | varchar(20) | 20 | TRUE | 销售出库单、应收单
是否选择 | FISCHECKED | char(1) | 1 | TRUE |

### T_RPM_RPMODEBASISEENTRY(返利模式依据)：脚本代码

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_RPMODEBASISEENTRY') and o.name = 'FK_T_RPM_RP_R_RPMODE__T_RPM_RP')
alter table T_RPM_RPMODEBASISEENTRY
drop constraint FK_T_RPM_RP_R_RPMODE__T_RPM_RP
go
if exists (select 1
from sysindexes
where id = object_id('T_RPM_RPMODEBASISEENTRY')
and name = 'IDX_RPM_RPMODEBASISEE_ID'
and indid > 0
and indid < 255)
drop index T_RPM_RPMODEBASISEENTRY.IDX_RPM_RPMODEBASISEE_ID
go
if exists (select 1
from sysobjects
where id = object_id('T_RPM_RPMODEBASISEENTRY')
and type = 'U')
drop table T_RPM_RPMODEBASISEENTRY
go
/*==============================================================*/
/* Table: T_RPM_RPMODEBASISEENTRY */
/*==============================================================*/
create table T_RPM_RPMODEBASISEENTRY (
FENTRYID int not null default 0,
FRPMODEID int not null default 0,
FBILLTYPE varchar(20) not null default '',
FISCHECKED char(1) not null default '',
constraint PK_RPM_RPMODEBASISEENTRY primary key (FENTRYID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'返利模式依据',
'user', @CurrentUser, 'table', 'T_RPM_RPMODEBASISEENTRY'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'销售出库单、应收单',
'user', @CurrentUser, 'table', 'T_RPM_RPMODEBASISEENTRY', 'column', 'FBILLTYPE'
go
/*==============================================================*/
/* Index: IDX_RPM_RPMODEBASISEE_ID */
/*==============================================================*/
create index IDX_RPM_RPMODEBASISEE_ID on T_RPM_RPMODEBASISEENTRY (
FRPMODEID ASC
)
go
alter table T_RPM_RPMODEBASISEENTRY
add constraint FK_T_RPM_RP_R_RPMODE__T_RPM_RP foreign key (FRPMODEID)
references T_RPM_RPMODE (FRPMODEID)
go

### T_RPM_RPMODEBASISEENTRY(返利模式依据)：键值定义

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

### T_RPM_RPMODEBASISEENTRY(返利模式依据)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_RPM_RPMODEBASISEE_ID | IDX_RPM_RPMODEBASISEE_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_RPM_RPMODEBASISEENTRY(返利模式依据)

上一页

主页

下一页