序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 否 | ||||
2 | ImgPath | nvarchar | 300 | 0 | 是 | 图片虚拟路径 | ||||
3 | Json | nvarchar | 4000 | 0 | 是 | |||||
4 | Title | nvarchar | 200 | 0 | 是 | 版面名:第A02版:要闻 | ||||
5 | CUser | int | 4 | 0 | 是 | |||||
6 | CDate | datetime | 8 | 3 | 是 | |||||
7 | Pid | int | 4 | 0 | 是 | id为0则为报纸,否则为版面 | ||||
8 | NewsName | nvarchar | 200 | 0 | 是 | 报纸名 | ||||
9 | AttachFile | nvarchar | 1000 | 0 | 是 | 存储PDF,Zip等高清报纸文件 | ||||
10 | Nid | int | 4 | 0 | 是 | 节点id |
报纸/版面表
GO
CREATE TABLE [dbo].[ZL_Content_Publish](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ImgPath] [nvarchar](300) NULL,
[Json] [nvarchar](4000) NULL,
[Title] [nvarchar](200) NULL,
[CUser] [int] NULL,
[CDate] [datetime] NULL,
[Pid] [int] NULL,
[NewsName] [nvarchar](200) NULL,
[AttachFile] [nvarchar](1000) NULL,
[Nid] [int] NULL) ON [PRIMARY]
SET IDENTITY_INSERT [ZL_Content_Publish] ON
INSERT [ZL_Content_Publish] ([ID],[CUser],[CDate],[Pid],[NewsName],[Nid]) VALUES ( 1,0,N'2017/4/7 11:30:10',0,N'人民日报',1)
INSERT [ZL_Content_Publish] ([ID],[ImgPath],[Json],[Title],[CUser],[CDate],[Pid],[Nid]) VALUES ( 2,N'/UploadFiles/demo/16.jpg',N'[{"id":"版块1","gid":"","remind":"","x":"20px","y":"20px","w":"150px","h":"150px"}]',N'人民日报头版',0,N'2017/4/7 11:30:30',1,0)
SET IDENTITY_INSERT [ZL_Content_Publish] OFF
detele from ZL_Content_Publish
drop table ZL_Content_Publish
TRUNCATE table ZL_Content_Publish