-
Notifications
You must be signed in to change notification settings - Fork 0
/
hacknyu.sql
104 lines (82 loc) · 2.26 KB
/
hacknyu.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
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Feb 16, 2019 at 11:44 PM
-- Server version: 5.7.23
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `hacknyu`
--
-- --------------------------------------------------------
--
-- Table structure for table `courses`
--
CREATE TABLE `courses` (
`uid` int(100) NOT NULL,
`courseid` int(50) NOT NULL,
`starttime` time NOT NULL,
`endtime` time NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `courses`
--
INSERT INTO `courses` (`uid`, `courseid`, `starttime`, `endtime`) VALUES
(4, 72799, '18:00:00', '20:30:00'),
(4, 72800, '15:00:00', '17:00:00'),
(4, 72822, '18:00:00', '20:30:00'),
(4, 72822, '17:00:00', '19:30:00'),
(4, 72950, '16:00:00', '18:30:00');
-- --------------------------------------------------------
--
-- Table structure for table `sessions`
--
CREATE TABLE `sessions` (
`session_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`expires` int(11) UNSIGNED NOT NULL,
`data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sessions`
--
INSERT INTO `sessions` (`session_id`, `expires`, `data`) VALUES
('bRbnasgcGwwZncV6DFzQIQ3y3Cnr2O3O', 1550445900, '{\"cookie\":{\"originalMaxAge\":null,\"expires\":null,\"httpOnly\":true,\"path\":\"/\"},\"sessId\":4}');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`uid` int(100) NOT NULL,
`fullname` varchar(200) NOT NULL,
`password` varchar(30) NOT NULL,
`uname` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`uid`, `fullname`, `password`, `uname`) VALUES
(4, 'Kushan Singh', 'abcd', 'ks5013');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `sessions`
--
ALTER TABLE `sessions`
ADD PRIMARY KEY (`session_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`uid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `uid` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;