forked from jgcanoy/192
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exquest.sql
87 lines (70 loc) · 2.57 KB
/
exquest.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
-- phpMyAdmin SQL Dump
-- version 3.4.10.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 23, 2012 at 02:48 PM
-- Server version: 5.5.20
-- PHP Version: 5.3.10
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;
--
-- Database: `exquest`
--
-- --------------------------------------------------------
--
-- Table structure for table `company`
--
CREATE TABLE IF NOT EXISTS `company` (
`cid` int(11) NOT NULL AUTO_INCREMENT,
`cname` varchar(30) NOT NULL,
`caddr` varchar(50) NOT NULL,
`cemail` varchar(30) NOT NULL,
`cnum` varchar(20) NOT NULL,
PRIMARY KEY (`cid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `company`
--
INSERT INTO `company` (`cid`, `cname`, `caddr`, `cemail`, `cnum`) VALUES
(1, 'ExQuest', 'UP Diliman, Quezon City', '[email protected]', '09052085149');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lname` varchar(30) NOT NULL,
`fname` varchar(30) NOT NULL,
`email` varchar(30) NOT NULL,
`password` varchar(100) NOT NULL,
`isAdmin` tinyint(4) NOT NULL DEFAULT '0',
`isLeader` tinyint(4) NOT NULL DEFAULT '0',
`isOfficer` tinyint(4) NOT NULL DEFAULT '0',
`isRegular` tinyint(4) NOT NULL DEFAULT '0',
`activationKey` varchar(100) DEFAULT NULL,
`activated` tinyint(4) NOT NULL DEFAULT '0',
`cid` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `cid` (`cid`,`email`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `lname`, `fname`, `email`, `password`, `isAdmin`, `isLeader`, `isOfficer`, `isRegular`, `activationKey`, `activated`, `cid`) VALUES
(1, 'Canoy', 'John Gabriel', '[email protected]', 'bu/STx8Yojnb99tAr3A84bR0Pp0ED3kHqXhC3JKpselgNqBeofjxnFyRN7wFxqNk/ZTvQUaF/IntWbwRHqWe5w==', 1, 0, 0, 0, NULL, 1, 1);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `users_ibfk_1` FOREIGN KEY (`cid`) REFERENCES `company` (`cid`) ON DELETE CASCADE ON UPDATE CASCADE;
/*!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 */;