| 1 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|---|
| 2 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|---|
| 3 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|---|
| 4 | /*!40101 SET NAMES utf8 */; |
|---|
| 5 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|---|
| 6 | /*!40103 SET TIME_ZONE='+00:00' */; |
|---|
| 7 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|---|
| 8 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|---|
| 9 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|---|
| 10 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|---|
| 11 | |
|---|
| 12 | -- |
|---|
| 13 | -- Table structure for table `creators` |
|---|
| 14 | -- |
|---|
| 15 | |
|---|
| 16 | DROP TABLE IF EXISTS creators; |
|---|
| 17 | CREATE TABLE creators ( |
|---|
| 18 | id int(10) unsigned NOT NULL auto_increment, |
|---|
| 19 | user_id int(10) unsigned NOT NULL, |
|---|
| 20 | `name` varchar(32) NOT NULL, |
|---|
| 21 | item_count tinyint(3) unsigned default NULL, |
|---|
| 22 | PRIMARY KEY (id) |
|---|
| 23 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 24 | |
|---|
| 25 | -- |
|---|
| 26 | -- Table structure for table `gallery` |
|---|
| 27 | -- |
|---|
| 28 | |
|---|
| 29 | DROP TABLE IF EXISTS gallery; |
|---|
| 30 | CREATE TABLE gallery ( |
|---|
| 31 | id int(10) unsigned NOT NULL auto_increment, |
|---|
| 32 | creatorid int(10) unsigned NOT NULL default '0', |
|---|
| 33 | filename varchar(255) NOT NULL default '', |
|---|
| 34 | uploaderid int(10) unsigned NOT NULL default '0', |
|---|
| 35 | approverid int(10) unsigned NOT NULL default '0', |
|---|
| 36 | `time` int(10) unsigned NOT NULL default '0', |
|---|
| 37 | `hash` varchar(32) NOT NULL default '', |
|---|
| 38 | title varchar(48) NOT NULL default '', |
|---|
| 39 | description text NOT NULL, |
|---|
| 40 | height smallint(5) unsigned NOT NULL default '0', |
|---|
| 41 | width smallint(5) unsigned NOT NULL default '0', |
|---|
| 42 | seriesid int(10) unsigned NOT NULL default '0', |
|---|
| 43 | position tinyint(3) unsigned NOT NULL default '0', |
|---|
| 44 | `type` enum('sketch','lineart','colored','story','oekaki') NOT NULL default 'sketch', |
|---|
| 45 | PRIMARY KEY (id), |
|---|
| 46 | UNIQUE KEY filename (filename) |
|---|
| 47 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|---|
| 48 | |
|---|
| 49 | -- |
|---|
| 50 | -- Table structure for table `gallery_keywords` |
|---|
| 51 | -- |
|---|
| 52 | |
|---|
| 53 | DROP TABLE IF EXISTS gallery_keywords; |
|---|
| 54 | CREATE TABLE gallery_keywords ( |
|---|
| 55 | id int(10) unsigned NOT NULL auto_increment, |
|---|
| 56 | keyword varchar(48) NOT NULL default '', |
|---|
| 57 | category varchar(48) NOT NULL default '', |
|---|
| 58 | description tinytext NOT NULL, |
|---|
| 59 | PRIMARY KEY (id), |
|---|
| 60 | UNIQUE KEY keyword (keyword) |
|---|
| 61 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|---|
| 62 | |
|---|
| 63 | -- |
|---|
| 64 | -- Table structure for table `item_keywords` |
|---|
| 65 | -- |
|---|
| 66 | |
|---|
| 67 | DROP TABLE IF EXISTS item_keywords; |
|---|
| 68 | CREATE TABLE item_keywords ( |
|---|
| 69 | itemid int(10) unsigned NOT NULL default '0', |
|---|
| 70 | keywordid int(10) unsigned NOT NULL default '0', |
|---|
| 71 | PRIMARY KEY (itemid,keywordid), |
|---|
| 72 | KEY itemid (itemid), |
|---|
| 73 | KEY keywordid (keywordid) |
|---|
| 74 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
|---|
| 75 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|---|
| 76 | |
|---|
| 77 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|---|
| 78 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|---|
| 79 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|---|
| 80 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|---|
| 81 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|---|
| 82 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|---|
| 83 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|---|
| 84 | |
|---|