表名:ZL_User_UnitWeek












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Flownvarchar1000    流水号
3AMountmoney84    用户自身的消费金额,不包含下级消费金额
4ChildAMountmoney84    下级消费金额汇总
5ChildIDSvarchar80000    直属下一级的会员ID
6RealUnitmoney84    disuse,仅用于古文化,每个需要有不同的计算公式,需要开放出来,或外部实现)
7RealUnit0money84    无提成的值
8RealUnit10money84    实际可以提成10%的值(根据用户等级,来自Unit0--Unit20)
9RealUnit20money84    实际可以提成20%的值
10RealUnit30money84    实际可以提成30%的值
11UserIDint40    用户ID
12PUserIDint40    推荐人ID
13CDatedatetime83    添加时间
14Remindnvarchar2000    系统备注
15Stateint40    0:未分成,1:已分成
16LogIDint40    消费日志ID
17MyStatusint40    状态

简要说明:

用户消费成分表

CREATE TABLE [dbo].[ZL_User_UnitWeek](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Flow] [nvarchar](100) NULL,
[AMount] [money] NULL,
[ChildAMount] [money] NULL,
[ChildIDS] [varchar](8000) NULL,
[RealUnit] [money] NULL,
[RealUnit0] [money] NULL,
[RealUnit10] [money] NULL,
[RealUnit20] [money] NULL,
[RealUnit30] [money] NULL,
[UserID] [int] NULL,
[PUserID] [int] NULL,
[CDate] [datetime] NULL,
[Remind] [nvarchar](200) NULL,
[State] [int] NULL,
[LogID] [int] NULL,
[MyStatus] [int] NULL,
CONSTRAINT [PK_ZL_User_UnitWeek] 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_UnitWeek

--注意:将删除整个表

drop table ZL_User_UnitWeek

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

TRUNCATE table ZL_User_UnitWeek