序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | TlpName | nvarchar | 50 | 0 | 是 | 模板名称 | ||||
3 | PreviewImg | nvarchar | 500 | 0 | 是 | 缩略图 | ||||
4 | Remind | nvarchar | 500 | 0 | 是 | 说明 | ||||
5 | Price | money | 8 | 4 | 是 | 价格 | ||||
6 | ZType | int | 4 | 0 | 是 | 类型 | ||||
7 | ZStatus | int | 4 | 0 | 是 | 状态 | ||||
8 | CDate | datetime | 8 | 3 | 是 | 创建时间 | ||||
9 | ClassID | int | 4 | 0 | 是 | 模板类别 | ||||
10 | IsDef | int | 4 | 0 | 是 | 是否默认 | ||||
11 | Score | float | 8 | 0 | 是 | 模板评分 | ||||
12 | DefBy | nvarchar | 500 | 0 | 是 | 是否默认 |
场景模板表
GO
CREATE TABLE [dbo].[ZL_Design_Tlp](
[ID] [int] IDENTITY(1,1) NOT NULL,
[TlpName] [nvarchar](50) NULL,
[PreviewImg] [nvarchar](500) NULL,
[Remind] [nvarchar](500) NULL,
[Price] [money] NULL,
[ZType] [int] NULL,
[ZStatus] [int] NULL,
[CDate] [datetime] NULL,
[ClassID] [int] NULL,
[IsDef] [int] NULL,
[Score] [float] NULL,
[DefBy] [nvarchar](500) NULL,
CONSTRAINT [PK_ZL_Design_Tlp] 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]
SET IDENTITY_INSERT [ZL_Design_Tlp] ON
INSERT [ZL_Design_Tlp] ([ID],[TlpName],[Price],[ZType],[ZStatus],[CDate],[ClassID],[IsDef]) VALUES ( 1,N'动力默认模板',0.0000,0,0,N'2016/6/24 11:52:19',6,1)
INSERT [ZL_Design_Tlp] ([ID],[TlpName],[PreviewImg],[Price],[ZType],[ZStatus],[CDate],[ClassID],[IsDef]) VALUES ( 2,N'场景默认模板',N'/design/scence/upload/page6_pic.jpg',0.0000,1,0,N'2016/6/24 11:53:20',6,1)
SET IDENTITY_INSERT [ZL_Design_Tlp] OFF
detele from ZL_Design_Tlp
drop table ZL_Design_Tlp
TRUNCATE table ZL_Design_Tlp