Skip to content

Instantly share code, notes, and snippets.

@Rubatharisan
Created November 19, 2017 11:43
Show Gist options
  • Save Rubatharisan/3648800803e09aae156dd0b62693399f to your computer and use it in GitHub Desktop.
Save Rubatharisan/3648800803e09aae156dd0b62693399f to your computer and use it in GitHub Desktop.
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: localhost (MySQL 5.6.35)
# Database: thusi
# Generation Time: 2017-11-19 11:42:56 +0000
# ************************************************************
/*!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 */;
/*!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' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
# Dump of table coverbillede
# ------------------------------------------------------------
DROP TABLE IF EXISTS `coverbillede`;
CREATE TABLE `coverbillede` (
`cover_id` int(30) NOT NULL AUTO_INCREMENT,
`cover` varchar(100) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`cover_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
# Dump of table gender
# ------------------------------------------------------------
DROP TABLE IF EXISTS `gender`;
CREATE TABLE `gender` (
`gender_id` int(6) NOT NULL AUTO_INCREMENT,
`gender` varchar(6) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`gender_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
# Dump of table post_codes
# ------------------------------------------------------------
DROP TABLE IF EXISTS `post_codes`;
CREATE TABLE `post_codes` (
`post_code` int(4) NOT NULL,
`city` varchar(80) NOT NULL,
UNIQUE KEY `post_code` (`post_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table posts
# ------------------------------------------------------------
DROP TABLE IF EXISTS `posts`;
CREATE TABLE `posts` (
`post_id` int(30) NOT NULL AUTO_INCREMENT,
`comment` mediumtext COLLATE utf8_bin NOT NULL,
`prof_id` int(3) NOT NULL,
`user_id` int(6) NOT NULL,
PRIMARY KEY (`post_id`),
KEY `prof_id` (`prof_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
# Dump of table profession
# ------------------------------------------------------------
DROP TABLE IF EXISTS `profession`;
CREATE TABLE `profession` (
`prof_id` int(3) NOT NULL AUTO_INCREMENT,
`profession` varchar(30) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`prof_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
# Dump of table users
# ------------------------------------------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`user_id` int(6) NOT NULL AUTO_INCREMENT,
`email` varchar(30) COLLATE utf8_bin NOT NULL,
`password` varchar(64) COLLATE utf8_bin NOT NULL,
`firstname` varchar(30) COLLATE utf8_bin NOT NULL DEFAULT '',
`lastname` varchar(30) COLLATE utf8_bin NOT NULL DEFAULT '',
`birthday` varchar(10) COLLATE utf8_bin NOT NULL,
`gender_id` int(1) NOT NULL,
`profession_id` int(30) NOT NULL,
`post_code` int(4) NOT NULL,
`profile_picture_path` blob NOT NULL,
PRIMARY KEY (`user_id`),
KEY `gender_id` (`gender_id`),
KEY `prof_id` (`profession_id`),
KEY `post_code` (`post_code`),
KEY `billede_id` (`profile_picture_path`(255))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!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 */;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment