序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | UserID | int | 4 | 0 | 是 | 推广用户ID | ||||
3 | PromoName | nvarchar | 50 | 0 | 是 | 推广名称 | ||||
4 | StartTime | datetime | 8 | 3 | 是 | 开始时间 | ||||
5 | EndTime | datetime | 8 | 3 | 是 | 结束时间 | ||||
6 | MoneyUL | money | 8 | 4 | 是 | |||||
7 | MoneyLL | money | 8 | 4 | 是 | |||||
8 | ProIds | nvarchar | 200 | 0 | 是 | |||||
9 | UserGroup | nvarchar | 100 | 0 | 是 | |||||
10 | ZType | int | 4 | 0 | 是 | |||||
11 | CreateTime | datetime | 8 | 3 | 是 |
优惠活动表
GO
CREATE TABLE [dbo].[ZL_Promotion](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[PromoName] [nvarchar](50) NULL,
[StartTime] [datetime] NULL,
[EndTime] [datetime] NULL,
[MoneyUL] [money] NULL,
[MoneyLL] [money] NULL,
[ProIds] [nvarchar](200) NULL,
[UserGroup] [nvarchar](100) NULL,
[ZType] [int] NULL,
[CreateTime] [datetime] NULL,
CONSTRAINT [PK_ZL_Promotion] 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_Promotion
drop table ZL_Promotion
TRUNCATE table ZL_Promotion