SCO供应链协同

## 数据表：T_RPM_RETURNCYCLE(返利周期)

### T_RPM_RETURNCYCLE(返利周期)：描述

名称 | T_RPM_RETURNCYCLE(返利周期)
代码 | T_RPM_RETURNCYCLE
注释 | 返利周期
模型 | SCO供应链协同
主键 | PK_RPM_RETURNCYCLE

### T_RPM_RETURNCYCLE(返利周期)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键ID | FRPCYCLEID | int |  | TRUE |
编码 | FNUMBER | nvarchar(30) | 30 | TRUE |
是否系统预设 | FISSYSTEM | char(1) | 1 | TRUE |
禁用状态 | FFORBIDSTATUS | char(1) | 1 | TRUE |
年度 | FYEAR | int |  | TRUE |
返利周期类型 | FRPCIRCLETYPE | varchar(20) | 20 | TRUE |
开始时间 | FSTARTDATE | datetime |  | TRUE |
结束时间 | FENDDATE | datetime |  | TRUE |

### T_RPM_RETURNCYCLE(返利周期)：脚本代码

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_RETURNCYCLE_L') and o.name = 'FK_T_RPM_RE_R_RETURNC_T_RPM_RE')
alter table T_RPM_RETURNCYCLE_L
drop constraint FK_T_RPM_RE_R_RETURNC_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_RPPOLICYENTRY') and o.name = 'FK_T_RPM_RP_R_RPPOLIC_T_RPM_RE')
alter table T_RPM_RPPOLICYENTRY
drop constraint FK_T_RPM_RP_R_RPPOLIC_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_RPSTATEMENTENTRY') and o.name = 'FK_T_RPM_RP_R_RPM_RPS_T_RPM_RE')
alter table T_RPM_RPSTATEMENTENTRY
drop constraint FK_T_RPM_RP_R_RPM_RPS_T_RPM_RE
go
if exists (select 1
from sysindexes
where id = object_id('T_RPM_RETURNCYCLE')
and name = 'IDX_RPM_RETURNCYCLE_NUM'
and indid > 0
and indid < 255)
drop index T_RPM_RETURNCYCLE.IDX_RPM_RETURNCYCLE_NUM
go
if exists (select 1
from sysobjects
where id = object_id('T_RPM_RETURNCYCLE')
and type = 'U')
drop table T_RPM_RETURNCYCLE
go
/*==============================================================*/
/* Table: T_RPM_RETURNCYCLE */
/*==============================================================*/
create table T_RPM_RETURNCYCLE (
FRPCYCLEID int not null default 0,
FNUMBER nvarchar(30) not null default '',
FISSYSTEM char(1) not null default '0',
FFORBIDSTATUS char(1) not null default '',
FYEAR int not null default 1900,
FRPCIRCLETYPE varchar(20) not null default '',
FSTARTDATE datetime not null default getdate(),
FENDDATE datetime not null default getdate(),
constraint PK_RPM_RETURNCYCLE primary key (FRPCYCLEID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'返利周期',
'user', @CurrentUser, 'table', 'T_RPM_RETURNCYCLE'
go
/*==============================================================*/
/* Index: IDX_RPM_RETURNCYCLE_NUM */
/*==============================================================*/
create index IDX_RPM_RETURNCYCLE_NUM on T_RPM_RETURNCYCLE (
FNUMBER ASC
)
go

### T_RPM_RETURNCYCLE(返利周期)：键值定义

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

### T_RPM_RETURNCYCLE(返利周期)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_RPM_RETURNCYCLE_NUM | IDX_RPM_RETURNCYCLE_NUM | FALSE | FALSE | FALSE | FALSE | FALSE | T_RPM_RETURNCYCLE(返利周期)

上一页

主页

下一页