表名:ZL_Deposit












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Moneymoney84    金额
3BonusPerdecimal55    分红比率
4UserIDint40     
5UserNamenvarchar1000    用户名称
6CDatedatetime83     
7MyTypeint40    资金类型,1:资金,2:赠金
8MyStateint40     
9Remarknvarchar5000    备注,存用户可见信息
10Remark2nvarchar5000    备注,存仅管理员可见信息
11BindIDint40    赠金绑定的资金入账ID
12LastCDatedatetime83    最近一次分红时间
13DayInWeekint40    所属周的第几天

简要说明:

分红表

GO
CREATE TABLE [dbo].[ZL_Deposit](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Money] [money] NULL,
[BonusPer] [decimal](5, 5) NULL,
[UserID] [int] NULL,
[UserName] [nvarchar](100) NULL,
[CDate] [datetime] NULL,
[MyType] [int] NULL,
[MyState] [int] NULL,
[Remark] [nvarchar](500) NULL,
[Remark2] [nvarchar](500) NULL,
[BindID] [int] NULL,
[LastCDate] [datetime] NULL,
[DayInWeek] [int] NULL,
CONSTRAINT [PK_ZL_DepositLog] 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_Deposit

--注意:将删除整个表

drop table ZL_Deposit

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

TRUNCATE table ZL_Deposit