Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e3be585c55
Fetching contributors…

Cannot retrieve contributors at this time

84 lines (71 sloc) 2.689 kb
/*!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 */;
# 'categories'
CREATE TABLE `categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`slug` varchar(30) DEFAULT NULL,
`date_create` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `slug` (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# interview_categories
CREATE TABLE `interview_categories` (
`interview_id` int(11) DEFAULT NULL,
`category_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# interview_wares
CREATE TABLE `interview_wares` (
`interview_id` int(11) DEFAULT NULL,
`ware_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# interviews
CREATE TABLE `interviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`slug` varchar(30) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL,
`summary` varchar(100) DEFAULT NULL,
`credit_name` varchar(40) DEFAULT NULL,
`credit_url` varchar(250) DEFAULT NULL,
`answers` text,
`is_published` tinyint(1) DEFAULT NULL,
`published_on` date DEFAULT NULL,
`date_create` datetime DEFAULT NULL,
`date_update` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `slug` (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# links
CREATE TABLE `links` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` int(11) DEFAULT NULL,
`name` varchar(40) DEFAULT NULL,
`url` varchar(120) DEFAULT NULL,
`description` varchar(50) DEFAULT NULL,
`date_create` datetime DEFAULT NULL,
`date_update` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# wares
CREATE TABLE `wares` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`slug` varchar(60) DEFAULT NULL,
`type` int(11) DEFAULT NULL,
`name` varchar(60) DEFAULT NULL,
`description` varchar(100) DEFAULT NULL,
`url` varchar(250) DEFAULT NULL,
`date_create` datetime DEFAULT NULL,
`date_update` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `slug` (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!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 */;
Jump to Line
Something went wrong with that request. Please try again.