This repository has been archived by the owner on Oct 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.sql
46 lines (37 loc) · 1.79 KB
/
setup.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
-- Creating Database for OpenVDP`
CREATE DATABASE IF NOT EXISTS `openvdp` DEFAULT CHARACTER SET utf16 COLLATE utf16_bin;
USE `openvdp`;
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE `comments` (
`id` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`content` text CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`email` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`date` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin;
--
-- Table structure for table `reports`
--
CREATE TABLE `reports` (
`id` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`title` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`content` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`cvss` decimal(10,0) NOT NULL,
`status` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`createdby` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`category` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`date` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin;
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`name` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`email` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`password` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`id` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL,
`role` tinyint(1) NOT NULL,
`color` varchar(1000) CHARACTER SET utf16 COLLATE utf16_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin;