-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcop4331.sql
More file actions
121 lines (97 loc) · 3.2 KB
/
cop4331.sql
File metadata and controls
121 lines (97 loc) · 3.2 KB
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
115
116
117
118
119
120
121
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Apr 11, 2018 at 05:00 PM
-- Server version: 5.7.19
-- PHP Version: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
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 */;
--
-- Database: `cop4331`
--
-- --------------------------------------------------------
--
-- Table structure for table `experiences`
--
DROP TABLE IF EXISTS `experiences`;
CREATE TABLE IF NOT EXISTS `experiences` (
`experienceID` int(11) NOT NULL AUTO_INCREMENT,
`userID` int(11) NOT NULL,
`name` varchar(64) NOT NULL,
`expDate` date NOT NULL,
`hours` float NOT NULL,
`notes` varchar(256) NOT NULL,
PRIMARY KEY (`experienceID`),
KEY `userID` (`userID`)
) ENGINE=MyISAM AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `experiences`
--
-- --------------------------------------------------------
--
-- Table structure for table `organizations`
--
DROP TABLE IF EXISTS `organizations`;
CREATE TABLE IF NOT EXISTS `organizations` (
`orgID` int(11) NOT NULL AUTO_INCREMENT,
`orgName` varchar(256) NOT NULL,
`orgZip` int(5) NOT NULL,
`orgWebsite` varchar(256) NOT NULL,
`conName` varchar(255) NOT NULL,
`conEmail` varchar(255) NOT NULL,
`approved` tinyint(1) NOT NULL,
PRIMARY KEY (`orgID`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `organizations`
--
INSERT INTO `organizations` (`orgID`, `orgName`, `orgZip`, `orgWebsite`, `conName`, `conEmail`, `approved`) VALUES
(1, 'Junior Knights', 32816, 'eecs.ucf.edu/JuniorKnights', '', '', 0),
(2, 'ACM-W', 32816, 'ucf-w.acm.org', '', '', 0),
(3, 'American Diabetes Association', 32751, 'diabetes.org', '', '', 0);
-- --------------------------------------------------------
--
-- Table structure for table `sessions`
--
DROP TABLE IF EXISTS `sessions`;
CREATE TABLE IF NOT EXISTS `sessions` (
`userID` int(11) NOT NULL,
`sessionID` varchar(256) NOT NULL,
`lastActivity` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`sessionID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sessions`
--
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
CREATE TABLE IF NOT EXISTS `user` (
`UserID` int(11) NOT NULL AUTO_INCREMENT,
`FName` varchar(45) DEFAULT NULL,
`LName` varchar(45) DEFAULT NULL,
`username` varchar(45) DEFAULT NULL,
`userPWHash` varchar(255) DEFAULT NULL,
`userZip` int(11) DEFAULT NULL,
`goal` int(11) DEFAULT NULL,
`admin` tinyint(1) NOT NULL,
PRIMARY KEY (`UserID`),
UNIQUE KEY `UserID_UNIQUE` (`UserID`),
UNIQUE KEY `username_UNIQUE` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `user`
--
/*!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 */;