-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdatabase.sql
More file actions
91 lines (74 loc) · 3.61 KB
/
database.sql
File metadata and controls
91 lines (74 loc) · 3.61 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
-- --------------------------------------------------------
-- Host: garywilber.com
-- Server version: 5.5.5-10.0.10-MariaDB-1~saucy-log - mariadb.org binary distribution
-- Server OS: debian-linux-gnu
-- HeidiSQL Version: 8.3.0.4694
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for xion
CREATE DATABASE IF NOT EXISTS `xion` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;
USE `xion`;
-- Dumping structure for table xion.buildings
CREATE TABLE IF NOT EXISTS `buildings` (
`parent` tinytext COLLATE utf8_unicode_ci,
`child` tinytext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table xion.clients
CREATE TABLE IF NOT EXISTS `clients` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` tinytext COLLATE utf8_unicode_ci NOT NULL,
`username` tinytext COLLATE utf8_unicode_ci NOT NULL,
`building` tinytext COLLATE utf8_unicode_ci NOT NULL,
`location` tinytext COLLATE utf8_unicode_ci NOT NULL,
`phone_number` tinytext COLLATE utf8_unicode_ci NOT NULL,
`active` char(1) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table xion.staff
CREATE TABLE IF NOT EXISTS `staff` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` tinytext COLLATE utf8_unicode_ci NOT NULL,
`username` tinytext COLLATE utf8_unicode_ci NOT NULL,
`password` tinytext COLLATE utf8_unicode_ci NOT NULL,
`building` tinytext COLLATE utf8_unicode_ci NOT NULL,
`location` tinytext COLLATE utf8_unicode_ci NOT NULL,
`email` tinytext COLLATE utf8_unicode_ci NOT NULL,
`phone_number` tinytext COLLATE utf8_unicode_ci NOT NULL,
`points` int(11) unsigned NOT NULL,
`type` tinyint(3) unsigned NOT NULL,
`active` char(1) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table xion.tags
CREATE TABLE IF NOT EXISTS `tags` (
`parent` tinytext COLLATE utf8_unicode_ci,
`child` tinytext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table xion.tickets
CREATE TABLE IF NOT EXISTS `tickets` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cid` int(10) unsigned NOT NULL,
`sid` int(10) unsigned NOT NULL,
`creatorid` int(10) unsigned NOT NULL,
`creation_date` int(10) unsigned NOT NULL,
`last_modified_date` int(10) unsigned NOT NULL,
`closed_date` int(10) unsigned NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`updates` mediumtext COLLATE utf8_unicode_ci NOT NULL,
`status` tinyint(3) unsigned NOT NULL,
`tags` text COLLATE utf8_unicode_ci NOT NULL,
`community` tinytext COLLATE utf8_unicode_ci NOT NULL,
`building` tinytext COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Data exporting was unselected.
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;