SCO供应链协同

## 数据表：T_RPM_RETURNPROFITTYPE(返利类型)

### T_RPM_RETURNPROFITTYPE(返利类型)：描述

名称 | T_RPM_RETURNPROFITTYPE(返利类型)
代码 | T_RPM_RETURNPROFITTYPE
注释 | 返利类型
模型 | SCO供应链协同
主键 | PK_RPM_RETURNPROFITTYPE

### T_RPM_RETURNPROFITTYPE(返利类型)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键ID | FRPTYPEID | int |  | TRUE |
编码 | FNUMBER | nvarchar(30) | 30 | TRUE |
是否系统预置 | FISSYSTEM | char(1) | 1 | TRUE |
禁用状态 | FFORBIDSTATUS | char(1) | 1 | TRUE |

### T_RPM_RETURNPROFITTYPE(返利类型)：脚本代码

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_RETURNPROFITTYPE_L') and o.name = 'FK_T_RPM_RE_R_RPTYPE__T_RPM_RE')
alter table T_RPM_RETURNPROFITTYPE_L
drop constraint FK_T_RPM_RE_R_RPTYPE__T_RPM_RE
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_RETURNPROFITWAY') and o.name = 'FK_T_RPM_RE_R_RPTYPE__T_RPM_RE')
alter table T_RPM_RETURNPROFITWAY
drop constraint FK_T_RPM_RE_R_RPTYPE__T_RPM_RE
go
if exists (select 1
from sysindexes
where id = object_id('T_RPM_RETURNPROFITTYPE')
and name = 'IDX_RPM_RETURNPROFITTYPE_NUM'
and indid > 0
and indid < 255)
drop index T_RPM_RETURNPROFITTYPE.IDX_RPM_RETURNPROFITTYPE_NUM
go
if exists (select 1
from sysobjects
where id = object_id('T_RPM_RETURNPROFITTYPE')
and type = 'U')
drop table T_RPM_RETURNPROFITTYPE
go
/*==============================================================*/
/* Table: T_RPM_RETURNPROFITTYPE */
/*==============================================================*/
create table T_RPM_RETURNPROFITTYPE (
FRPTYPEID int not null default 0,
FNUMBER nvarchar(30) not null default '',
FISSYSTEM char(1) not null default '',
FFORBIDSTATUS char(1) not null default '',
constraint PK_RPM_RETURNPROFITTYPE primary key (FRPTYPEID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'返利类型',
'user', @CurrentUser, 'table', 'T_RPM_RETURNPROFITTYPE'
go
/*==============================================================*/
/* Index: IDX_RPM_RETURNPROFITTYPE_NUM */
/*==============================================================*/
create index IDX_RPM_RETURNPROFITTYPE_NUM on T_RPM_RETURNPROFITTYPE (
FNUMBER ASC
)
go

### T_RPM_RETURNPROFITTYPE(返利类型)：键值定义

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

### T_RPM_RETURNPROFITTYPE(返利类型)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_RPM_RETURNPROFITTYPE_NUM | IDX_RPM_RETURNPROFITTYPE_NUM | FALSE | FALSE | FALSE | FALSE | FALSE | T_RPM_RETURNPROFITTYPE(返利类型)

上一页

主页

下一页