序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Money | money | 8 | 4 | 是 | 金额 | ||||
3 | BonusPer | decimal | 5 | 5 | 是 | 分红比率 | ||||
4 | UserID | int | 4 | 0 | 是 | |||||
5 | UserName | nvarchar | 100 | 0 | 是 | 用户名称 | ||||
6 | CDate | datetime | 8 | 3 | 是 | |||||
7 | MyType | int | 4 | 0 | 是 | 资金类型,1:资金,2:赠金 | ||||
8 | MyState | int | 4 | 0 | 是 | |||||
9 | Remark | nvarchar | 500 | 0 | 是 | 备注,存用户可见信息 | ||||
10 | Remark2 | nvarchar | 500 | 0 | 是 | 备注,存仅管理员可见信息 | ||||
11 | BindID | int | 4 | 0 | 是 | 赠金绑定的资金入账ID | ||||
12 | LastCDate | datetime | 8 | 3 | 是 | 最近一次分红时间 | ||||
13 | DayInWeek | int | 4 | 0 | 是 | 所属周的第几天 |
分红表
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
TRUNCATE table ZL_Deposit