mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-18 15:18:04 +00:00
124 lines
4.6 KiB
SQL
124 lines
4.6 KiB
SQL
-- MySQL dump 10.13 Distrib 5.5.9, for osx10.6 (i386)
|
|
--
|
|
-- Host: localhost Database: jsbin
|
|
-- ------------------------------------------------------
|
|
-- Server version 5.5.9
|
|
|
|
/*!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 */;
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
/*!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 */;
|
|
|
|
--
|
|
-- Table structure for table `forgot_tokens`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `forgot_tokens`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `forgot_tokens` (
|
|
`owner_name` varchar(255) NOT NULL,
|
|
`token` varchar(255) NOT NULL,
|
|
`expires` datetime NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
KEY `index_expires` (`expires`),
|
|
KEY `index_token_expires` (`token`,`created`,`expires`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `owners`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `owners`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `owners` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` char(255) NOT NULL,
|
|
`url` char(255) NOT NULL,
|
|
`revision` int(11) DEFAULT '1',
|
|
`last_updated` datetime NOT NULL,
|
|
`summary` varchar(255) NOT NULL DEFAULT '',
|
|
`html` tinyint(1) NOT NULL DEFAULT '0',
|
|
`css` tinyint(1) NOT NULL DEFAULT '0',
|
|
`javascript` tinyint(1) NOT NULL DEFAULT '0',
|
|
`archive` tinyint(1) NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`id`),
|
|
KEY `name_url` (`name`,`url`,`revision`),
|
|
KEY `last_updated` (`name`,`last_updated`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=289 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `ownership`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `ownership`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `ownership` (
|
|
`name` char(255) NOT NULL,
|
|
`key` char(255) NOT NULL,
|
|
`email` varchar(255) NOT NULL DEFAULT '',
|
|
`api_key` VARCHAR(255) NULL,
|
|
`github_token` VARCHAR(255),
|
|
`github_id` int(11),
|
|
`last_login` datetime NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
`updated` datetime NOT NULL,
|
|
PRIMARY KEY (`name`),
|
|
KEY `name_key` (`name`,`key`),
|
|
KEY `ownership_api_key` (`api_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `sandbox`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `sandbox`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `sandbox` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`javascript` mediumtext COLLATE utf8mb4_unicode_ci,
|
|
`html` mediumtext COLLATE utf8mb4_unicode_ci,
|
|
`created` datetime DEFAULT NULL,
|
|
`last_viewed` datetime DEFAULT NULL,
|
|
`url` char(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
`active` char(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'y',
|
|
`reported` datetime DEFAULT NULL,
|
|
`streaming` char(1) COLLATE utf8mb4_unicode_ci DEFAULT 'n',
|
|
`streaming_key` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`streaming_read_key` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`active_tab` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`active_cursor` int(11) NOT NULL,
|
|
`revision` int(11) DEFAULT '1',
|
|
`css` mediumtext COLLATE utf8mb4_unicode_ci,
|
|
`settings` mediumtext COLLATE utf8mb4_unicode_ci,
|
|
PRIMARY KEY (`id`),
|
|
KEY `viewed` (`last_viewed`),
|
|
KEY `url` (`url`(191)),
|
|
KEY `streaming_key` (`streaming_key`),
|
|
KEY `spam` (`created`,`last_viewed`),
|
|
KEY `revision` (`url`(191),`revision`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1585463 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_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 */;
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
|
|
-- Dump completed on 2013-01-11 9:26:38 |