-
Notifications
You must be signed in to change notification settings - Fork 1
/
college (2).sql
67 lines (56 loc) · 2.17 KB
/
college (2).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
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 21, 2015 at 12:06 AM
-- Server version: 5.5.41-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.6
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: `college`
--
-- --------------------------------------------------------
--
-- Table structure for table `clickcounts`
--
CREATE TABLE IF NOT EXISTS `clickcounts` (
`clickcountid` int(10) NOT NULL AUTO_INCREMENT,
`page` varchar(50) NOT NULL,
`userid` varchar(50) NOT NULL,
`count` int(50) NOT NULL DEFAULT '1',
`loyal` tinyint(1) NOT NULL DEFAULT '1',
`updatedOn` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`createdOn` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`clickcountid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`userid` int(10) NOT NULL AUTO_INCREMENT,
`role` varchar(50) NOT NULL DEFAULT 'user',
`username` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`firstname` varchar(50) NOT NULL,
`lastname` varchar(50) NOT NULL,
`gender` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`housetype` varchar(50) NOT NULL,
`jobtype` varchar(50) NOT NULL,
`city` varchar(50) NOT NULL,
`updatedOn` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`createdOn` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`loginCount` int(10) NOT NULL DEFAULT '0',
`lastVisited` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
/*!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 */;