SCO供应链协同

## 数据表：T_RPM_RPPOLICYCUSTOMER(返利政策参与客户)

### T_RPM_RPPOLICYCUSTOMER(返利政策参与客户)：描述

名称 | T_RPM_RPPOLICYCUSTOMER(返利政策参与客户)
代码 | T_RPM_RPPOLICYCUSTOMER
注释 | 返利政策参与客户
模型 | SCO供应链协同
主键 | PK_RPM_RPPOLICYCUSTOMER

### T_RPM_RPPOLICYCUSTOMER(返利政策参与客户)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
分录主键 | FENTRYID | int |  | TRUE |
返利政策ID | FID | int |  | TRUE |
客户 | FCUSTOMERID | int |  | TRUE |
客户内码 | FCUSTMASTERID | int |  | TRUE |
客户分类 | FCUSTOMERTYPEID | varchar(36) | 36 | TRUE |
会员 | FMEMBERID | int |  | TRUE |
会员等级 | FMEMBERDEGREEID | int |  | TRUE |
分录行号 | FSEQ | int |  | TRUE |

### T_RPM_RPPOLICYCUSTOMER(返利政策参与客户)：脚本代码

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_RPPOLICYCUSTOMER') and o.name = 'FK_T_RPM_RP_R_RPM_POL_T_RPM_RP')
alter table T_RPM_RPPOLICYCUSTOMER
drop constraint FK_T_RPM_RP_R_RPM_POL_T_RPM_RP
go
if exists (select 1
from sysindexes
where id = object_id('T_RPM_RPPOLICYCUSTOMER')
and name = 'IDX_RPM_POLICYCUSTOMER_IDS'
and indid > 0
and indid < 255)
drop index T_RPM_RPPOLICYCUSTOMER.IDX_RPM_POLICYCUSTOMER_IDS
go
if exists (select 1
from sysobjects
where id = object_id('T_RPM_RPPOLICYCUSTOMER')
and type = 'U')
drop table T_RPM_RPPOLICYCUSTOMER
go
/*==============================================================*/
/* Table: T_RPM_RPPOLICYCUSTOMER */
/*==============================================================*/
create table T_RPM_RPPOLICYCUSTOMER (
FENTRYID int not null default 0,
FID int not null default 0,
FCUSTOMERID int not null default 0,
FCUSTMASTERID int not null default 0,
FCUSTOMERTYPEID varchar(36) not null default '',
FMEMBERID int not null default 0,
FMEMBERDEGREEID int not null default 0,
FSEQ int not null default 0,
constraint PK_RPM_RPPOLICYCUSTOMER primary key (FENTRYID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'返利政策参与客户',
'user', @CurrentUser, 'table', 'T_RPM_RPPOLICYCUSTOMER'
go
/*==============================================================*/
/* Index: IDX_RPM_POLICYCUSTOMER_IDS */
/*==============================================================*/
create index IDX_RPM_POLICYCUSTOMER_IDS on T_RPM_RPPOLICYCUSTOMER (
FCUSTOMERID ASC,
FCUSTOMERTYPEID ASC,
FMEMBERID ASC,
FMEMBERDEGREEID ASC,
FID ASC
)
go
alter table T_RPM_RPPOLICYCUSTOMER
add constraint FK_T_RPM_RP_R_RPM_POL_T_RPM_RP foreign key (FID)
references T_RPM_RPPOLICY (FID)
go

### T_RPM_RPPOLICYCUSTOMER(返利政策参与客户)：键值定义

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

### T_RPM_RPPOLICYCUSTOMER(返利政策参与客户)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_RPM_POLICYCUSTOMER_IDS | IDX_RPM_POLICYCUSTOMER_IDS | FALSE | FALSE | FALSE | FALSE | FALSE | T_RPM_RPPOLICYCUSTOMER(返利政策参与客户)

上一页

主页

下一页