序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | MainID | int | 4 | 0 | 是 | 所属红包 | ||||
3 | RedCode | nvarchar | 100 | 0 | 是 | 红包码 | ||||
4 | Amount | decimal | 9 | 0 | 是 | 红包金额 | ||||
5 | ZStatus | int | 4 | 0 | 是 | 1:正常,99:已使用,-1:已有人领取,但未成功,0:禁用 | ||||
6 | UseTime | nvarchar | 500 | 0 | 是 | 领取时间 | ||||
7 | Remind | nvarchar | 500 | 0 | 是 | 领取备注 | ||||
8 | UserID | int | 4 | 0 | 是 | 领取人ID | ||||
9 | UserName | nvarchar | 500 | 0 | 是 | 领取人用户名 | ||||
10 | CDate | datetime | 8 | 3 | 是 | 领取时间 |
微信红包领取记录表
GO
CREATE TABLE [dbo].[ZL_WX_RedDetail](
[ID] [int] IDENTITY(1,1) NOT NULL,
[MainID] [int] NULL,
[RedCode] [nvarchar](100) NULL,
[Amount] [decimal](18, 0) NULL,
[ZStatus] [int] NULL,
[UseTime] [nvarchar](500) NULL,
[Remind] [nvarchar](500) NULL,
[UserID] [int] NULL,
[UserName] [nvarchar](500) NULL,
[CDate] [datetime] NULL,
CONSTRAINT [PK_ZL_WX_RedDetail] 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_WX_RedDetail
drop table ZL_WX_RedDetail
TRUNCATE table ZL_WX_RedDetail