序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ExpHisID | int | 4 | 0 | 是 | 是 | 否 | 主键ID | ||
2 | UserID | int | 4 | 0 | 是 | |||||
3 | Score | money | 8 | 4 | 是 | 出入金额 | ||||
4 | HisTime | datetime | 8 | 3 | 是 | 出入时间 | ||||
5 | Operator | int | 4 | 0 | 是 | 操作人 | ||||
6 | Detail | nvarchar | 1000 | 0 | 是 | 详情 | ||||
7 | OperatorIP | nvarchar | 200 | 0 | 是 | 用户IP | ||||
8 | ScoreType | int | 4 | 0 | 是 | 虚拟币类型 | ||||
9 | Remark | nvarchar | 200 | 0 | 是 | 备注 |
用户点卷出入记录
GO
CREATE TABLE [dbo].[ZL_User_UserPoint](
[ExpHisID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[Score] [money] NULL,
[HisTime] [datetime] NULL,
[Operator] [int] NULL,
[Detail] [nvarchar](1000) NULL,
[OperatorIP] [nvarchar](200) NULL,
[ScoreType] [int] NULL,
[Remark] [nvarchar](200) NULL,
CONSTRAINT [PK_ZL_User_UserPoint] PRIMARY KEY CLUSTERED
([ExpHisID] 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_UserPoint
drop table ZL_User_UserPoint
TRUNCATE table ZL_User_UserPoint