-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathStarRatingSystemDatabaseTables.sql
58 lines (43 loc) · 1.25 KB
/
StarRatingSystemDatabaseTables.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/****** Object: Table [dbo].[Articles] Script Date: 12/20/16 7:18:26 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Articles](
[AutoId] [int] IDENTITY(1,1) NOT NULL,
[Title] [varchar](50) NULL,
[Description] [varchar](7999) NULL,
[Active] [bit] NULL,
CONSTRAINT [PK_Articles] PRIMARY KEY CLUSTERED
(
[AutoId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
USE [TrainingDatabase]
GO
/****** Object: Table [dbo].[ArticlesComments] Script Date: 12/20/16 7:18:32 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ArticlesComments](
[CommentId] [int] IDENTITY(1,1) NOT NULL,
[Comments] [varchar](7999) NOT NULL,
[ThisDateTime] [datetime] NOT NULL,
[ArticleId] [int] NULL,
[Rating] [int] NULL,
CONSTRAINT [PK_ComplaintComments] PRIMARY KEY CLUSTERED
(
[CommentId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO