表名:ZL_WX_RedDetail












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2MainIDint40    所属红包
3RedCodenvarchar1000    红包码
4Amountdecimal90    红包金额
5ZStatusint40    1:正常,99:已使用,-1:已有人领取,但未成功,0:禁用
6UseTimenvarchar5000    领取时间
7Remindnvarchar5000    领取备注
8UserIDint40    领取人ID
9UserNamenvarchar5000    领取人用户名
10CDatedatetime83    领取时间

简要说明:

微信红包领取记录表

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

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

TRUNCATE table ZL_WX_RedDetail