表名:ZL_WX_RedPacket












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Remindnvarchar5000    红包备注
3CDatedatetime83    创建时间
4SDatedatetime83    生效日期
5EDatedatetime83    结束日期
6RedNumint40    初始红包数量(实际数量动态计算)
7AdminIDint40    添加管理员ID
8ZStatusint40    状态开头,暂时不用
9Namenvarchar1000    红包名称
10Wishingnvarchar5000    祝福语
11AmountRangenvarchar1000    金额范围示例:1 或1-10
12CodeFormatnvarchar1000    红包码格式示例:RD{000000AA}
13AppIDint40    红包所属公众号APPID
14Flownvarchar1000    批次号|匹配号

简要说明:

微信红包表

GO
CREATE TABLE [dbo].[ZL_WX_RedPacket](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Remind] [nvarchar](500) NULL,
[CDate] [datetime] NULL,
[SDate] [datetime] NULL,
[EDate] [datetime] NULL,
[RedNum] [int] NULL,
[AdminID] [int] NULL,
[ZStatus] [int] NULL,
[Name] [nvarchar](100) NULL,
[Wishing] [nvarchar](500) NULL,
[AmountRange] [nvarchar](100) NULL,
[CodeFormat] [nvarchar](100) NULL,
[AppID] [int] NULL,
[Flow] [nvarchar](100) NULL,
CONSTRAINT [PK_ZL_WX_RedPacket] 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_RedPacket

--注意:将删除整个表

drop table ZL_WX_RedPacket

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

TRUNCATE table ZL_WX_RedPacket