序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Name | nvarchar | 200 | 0 | 是 | 抽奖活动名称 | ||||
3 | Prize | ntext | 16 | 0 | 是 | 奖品Json数据 | ||||
4 | SDate | datetime | 8 | 3 | 是 | 开始时间 | ||||
5 | EDate | datetime | 8 | 3 | 是 | 结束时间 | ||||
6 | LimitNum | int | 4 | 0 | 是 | 参加人数限制 | ||||
7 | AdminID | int | 4 | 0 | 是 | |||||
8 | CDate | datetime | 8 | 3 | 是 | |||||
9 | Remind | nvarchar | 2000 | 0 | 是 |
微信抽奖活动
CREATE TABLE [dbo].[ZL_WX_LuckDraw](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](200) NULL,
[Prize] [ntext] NULL,
[SDate] [datetime] NULL,
[EDate] [datetime] NULL,
[LimitNum] [int] NULL,
[AdminID] [int] NULL,
[CDate] [datetime] NULL,
[Remind] [nvarchar](2000) NULL,
CONSTRAINT [PK_ZL_WX_LuckDraw] 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] TEXTIMAGE_ON [PRIMARY]
detele from ZL_WX_LuckDraw
drop table ZL_WX_LuckDraw
TRUNCATE table ZL_WX_LuckDraw