Skip to content

Commit ec78766

Browse files
author
demofan
committed
DB Script
1 parent 1c0ff06 commit ec78766

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Ch16-CMS/CreateTable.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CREATE TABLE [dbo].[Article]
2+
(
3+
[ID] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY,
4+
[Subject] NVARCHAR(50) NOT NULL,
5+
[Summary] NVARCHAR(500) NOT NULL,
6+
[ContentText] NVARCHAR(MAX) NOT NULL,
7+
[IsPublich] BIT NOT NULL,
8+
[PublishDate] DATETIME NOT NULL,
9+
[ViewCount] INT NOT NULL,
10+
[CreateUser] UNIQUEIDENTIFIER NOT NULL,
11+
[CreateDate] DATETIME NOT NULL,
12+
[UpdateUser] UNIQUEIDENTIFIER NULL,
13+
[UpdateDate] DATETIME NOT NULL
14+
)

0 commit comments

Comments
 (0)