-
Notifications
You must be signed in to change notification settings - Fork 0
/
APRoject-ExampleDB.sql
114 lines (91 loc) · 3.41 KB
/
APRoject-ExampleDB.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Apr 16, 2023 at 03:07 PM
-- Server version: 8.0.32-0ubuntu0.20.04.2
-- PHP Version: 8.1.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
-- --------------------------------------------------------
--
-- Table structure for table `projects`
--
CREATE TABLE `projects` (
`pid` int UNSIGNED NOT NULL,
`title` varchar(100) NOT NULL,
`start_date` date DEFAULT NULL,
`end_date` date DEFAULT NULL,
`phase` enum('design','development','testing','deployment','complete') DEFAULT NULL,
`description` varchar(500) DEFAULT NULL,
`uid` int UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Dumping data for table `projects`
--
INSERT INTO `projects` (`pid`, `title`, `start_date`, `end_date`, `phase`, `description`, `uid`) VALUES
(24, 'Pizza Eating Simulator', '2023-04-07', '2023-04-15', 'deployment', '100% accurate domino pizza eating no big johns condiments dlc not incluided', 10),
(26, 'Deleting Edge permanently', '2023-04-13', '2023-04-17', 'complete', 'we bringing torches to microsoft!!\"\"!£!\" we butna it all down!!! k', 14),
(27, 'Staff Test Project', '2023-04-01', '2023-04-06', 'complete', 'This is a theoretical description for a theotical project the staff mayb be taking part in', 15);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`uid` int UNSIGNED NOT NULL,
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`uid`, `username`, `password`, `email`) VALUES
(10, 'yummy', '$2y$10$Pl7xx8oUSqTKtI3Qd0/toeiNdsyCYyDrzlwNYy3pfBXNyExeTBWfm', 'taste@yum.com'),
(14, 'iHateEdge', '$2y$10$.7HHxaC0lxKVQB4eMpLTguN/by8CVHUkVHRyMSL7TgXZzg4D.dJ5O', 'edgeIsForLosers@gmail.com'),
(15, 'AstonStaff', '$2y$10$QwcN.kvQwiUmMeXu7TZjcO3qiyK5FfGjDMFz1bbjHK8Rb96vxH0IC', 'staff@aston.ac.uk');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `projects`
--
ALTER TABLE `projects`
ADD PRIMARY KEY (`pid`),
ADD KEY `uid` (`uid`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`uid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `projects`
--
ALTER TABLE `projects`
MODIFY `pid` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `uid` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `projects`
--
ALTER TABLE `projects`
ADD CONSTRAINT `projects_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `users` (`uid`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;