mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-18 15:18:04 +00:00
10 lines
1.4 KiB
SQL
10 lines
1.4 KiB
SQL
CREATE TABLE IF NOT EXISTS `owners` (`id` integer NOT NULL PRIMARY KEY AUTOINCREMENT , `name` char(25) NOT NULL , `url` char(255) NOT NULL , `revision` integer default '1');
|
|
CREATE TABLE IF NOT EXISTS `ownership` (`name` char(50) NOT NULL , `key` char(255) NOT NULL , `email` varchar(255) NOT NULL default '', `last_login` datetime NOT NULL , `created` datetime NOT NULL , `updated` datetime NOT NULL , PRIMARY KEY (`name`) );
|
|
CREATE TABLE IF NOT EXISTS `sandbox` (`id` integer NOT NULL PRIMARY KEY AUTOINCREMENT , `javascript` text , `html` text , `created` datetime default NULL , `last_viewed` datetime default NULL , `url` char(255) default NULL , `streaming` char(1) default 'n', `streaming_key` char(32) , `streaming_read_key` char(32) , `active_tab` varchar(10) , `active_cursor` integer , `revision` integer default '1', `css` text , `settings` text );
|
|
CREATE INDEX IF NOT EXISTS "sandbox_viewed" ON "sandbox" (`last_viewed`);
|
|
CREATE INDEX IF NOT EXISTS "sandbox_url" ON "sandbox" (`url`);
|
|
CREATE INDEX IF NOT EXISTS "sandbox_streaming_key" ON "sandbox" (`streaming_key`);
|
|
CREATE INDEX IF NOT EXISTS "sandbox_spam" ON "sandbox" (`created`,`last_viewed`);
|
|
CREATE INDEX IF NOT EXISTS "sandbox_revision" ON "sandbox" (`url`,`revision`);
|
|
CREATE INDEX IF NOT EXISTS "ownership_name_key" ON "ownership" (`name`,`key`);
|
|
CREATE INDEX IF NOT EXISTS "owners_name_url" ON "owners" (`name`,`url`,`revision`); |