表名:ZL_User_Consume












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2UserIDint40     
3PUserIDint40    用户推荐人ID
4MTypeint40    消费记录类型
5AMountmoney84    消费额
6CDatedatetime83     
7UnitPercentnvarchar500    分成比率
8UnitAmountmoney84    分成金额
9Stateint40    消费记录状态
10Remindnvarchar2000     
11Detailnvarchar2000    消息记录详情
12BindIDint40    绑定分成ID
13ChildAMountmoney84    消费金额汇总
14RealUnitmoney84    消费分成记录
15RealUnit0money84    消费分成记录
16RealUnit10money84    消费分成记录
17RealUnit20money84    消费分成记录
18RealUnit30money84    消费分成记录
19ChildIDSvarchar80000     

简要说明:

用户消费成分表

GO
CREATE TABLE [dbo].[ZL_User_Consume](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[PUserID] [int] NULL,
[MType] [int] NULL,
[AMount] [money] NULL,
[CDate] [datetime] NULL,
[UnitPercent] [nvarchar](50) NULL,
[UnitAmount] [money] NULL,
[State] [int] NULL,
[Remind] [nvarchar](200) NULL,
[Detail] [nvarchar](200) NULL,
[BindID] [int] NULL,
CONSTRAINT [PK_ZL_User_Consume] PRIMARY KEY CLUSTERED
([ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

--注意:将清空全表数据

detele from ZL_User_Consume

--注意:将删除整个表

drop table ZL_User_Consume

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_User_Consume