SCO供应链协同

## 数据表：T_RPM_RPPOLICYSALEORG(返利政策参与组织)

### T_RPM_RPPOLICYSALEORG(返利政策参与组织)：描述

名称 | T_RPM_RPPOLICYSALEORG(返利政策参与组织)
代码 | T_RPM_RPPOLICYSALEORG
注释 | 返利政策参与组织
模型 | SCO供应链协同
主键 | PK_RPM_RPPOLICYSALEORG

### T_RPM_RPPOLICYSALEORG(返利政策参与组织)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
分录主键 | FEntryID | int |  | TRUE |
返利政策ID | FID | int |  | TRUE |
参与销售组织 | FSALEORGID | int |  | TRUE |
分录行号 | FSEQ | int |  | TRUE |

### T_RPM_RPPOLICYSALEORG(返利政策参与组织)：脚本代码

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_RPPOLICYSALEORG') and o.name = 'FK_T_RPM_RP_R_RPM_POL_T_RPM_RP')
alter table T_RPM_RPPOLICYSALEORG
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_RPPOLICYSALEORG')
and name = 'IDX_RPM_POLICYSALEORG_ORG'
and indid > 0
and indid < 255)
drop index T_RPM_RPPOLICYSALEORG.IDX_RPM_POLICYSALEORG_ORG
go
if exists (select 1
from sysindexes
where id = object_id('T_RPM_RPPOLICYSALEORG')
and name = 'IDX_RPM_POLICYSALEORG_ID'
and indid > 0
and indid < 255)
drop index T_RPM_RPPOLICYSALEORG.IDX_RPM_POLICYSALEORG_ID
go
if exists (select 1
from sysobjects
where id = object_id('T_RPM_RPPOLICYSALEORG')
and type = 'U')
drop table T_RPM_RPPOLICYSALEORG
go
/*==============================================================*/
/* Table: T_RPM_RPPOLICYSALEORG */
/*==============================================================*/
create table T_RPM_RPPOLICYSALEORG (
FEntryID int not null default 0,
FID int not null default 0,
FSALEORGID int not null default 0,
FSEQ int not null default 0,
constraint PK_RPM_RPPOLICYSALEORG primary key (FEntryID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'返利政策参与组织',
'user', @CurrentUser, 'table', 'T_RPM_RPPOLICYSALEORG'
go
/*==============================================================*/
/* Index: IDX_RPM_POLICYSALEORG_ID */
/*==============================================================*/
create index IDX_RPM_POLICYSALEORG_ID on T_RPM_RPPOLICYSALEORG (
FID ASC
)
go
/*==============================================================*/
/* Index: IDX_RPM_POLICYSALEORG_ORG */
/*==============================================================*/
create index IDX_RPM_POLICYSALEORG_ORG on T_RPM_RPPOLICYSALEORG (
FSALEORGID ASC,
FID ASC
)
go
alter table T_RPM_RPPOLICYSALEORG
add constraint FK_T_RPM_RP_R_RPM_POL_T_RPM_RP foreign key (FID)
references T_RPM_RPPOLICY (FID)
go

### T_RPM_RPPOLICYSALEORG(返利政策参与组织)：键值定义

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

### T_RPM_RPPOLICYSALEORG(返利政策参与组织)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_RPM_POLICYSALEORG_ID | IDX_RPM_POLICYSALEORG_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_RPM_RPPOLICYSALEORG(返利政策参与组织)
IDX_RPM_POLICYSALEORG_ORG | IDX_RPM_POLICYSALEORG_ORG | FALSE | FALSE | FALSE | FALSE | FALSE | T_RPM_RPPOLICYSALEORG(返利政策参与组织)

上一页

主页

下一页