| 1 | ; |
|---|
| 2 | ; |
|---|
| 3 | ; |
|---|
| 4 | ; |
|---|
| 5 | ; |
|---|
| 6 | ; |
|---|
| 7 | ; |
|---|
| 8 | ; |
|---|
| 9 | ; |
|---|
| 10 | ; |
|---|
| 11 | |
|---|
| 12 | -- |
|---|
| 13 | -- Table structure for table `creators` |
|---|
| 14 | -- |
|---|
| 15 | |
|---|
| 16 | DROP TABLE IF EXISTS creators; |
|---|
| 17 | SET @saved_cs_client = @@character_set_client; |
|---|
| 18 | SET character_set_client = utf8; |
|---|
| 19 | CREATE TABLE creators ( |
|---|
| 20 | id int(10) unsigned NOT NULL auto_increment, |
|---|
| 21 | user_id int(10) unsigned NOT NULL, |
|---|
| 22 | `name` varchar(32) NOT NULL, |
|---|
| 23 | item_count tinyint(3) unsigned default NULL, |
|---|
| 24 | PRIMARY KEY (id) |
|---|
| 25 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 26 | SET character_set_client = @saved_cs_client; |
|---|
| 27 | |
|---|
| 28 | -- |
|---|
| 29 | -- Table structure for table `gallery` |
|---|
| 30 | -- |
|---|
| 31 | |
|---|
| 32 | DROP TABLE IF EXISTS gallery; |
|---|
| 33 | SET @saved_cs_client = @@character_set_client; |
|---|
| 34 | SET character_set_client = utf8; |
|---|
| 35 | CREATE TABLE gallery ( |
|---|
| 36 | id int(10) unsigned NOT NULL auto_increment, |
|---|
| 37 | creatorid int(10) unsigned NOT NULL default '0', |
|---|
| 38 | filename varchar(255) NOT NULL default '', |
|---|
| 39 | uploaderid int(10) unsigned NOT NULL default '0', |
|---|
| 40 | approverid int(10) unsigned NOT NULL default '0', |
|---|
| 41 | `time` int(10) unsigned NOT NULL default '0', |
|---|
| 42 | `hash` varchar(32) NOT NULL default '', |
|---|
| 43 | title varchar(48) NOT NULL default '', |
|---|
| 44 | description mediumtext NOT NULL, |
|---|
| 45 | height smallint(5) unsigned NOT NULL default '0', |
|---|
| 46 | width smallint(5) unsigned NOT NULL default '0', |
|---|
| 47 | seriesid int(10) unsigned NOT NULL default '0', |
|---|
| 48 | position tinyint(3) unsigned NOT NULL default '0', |
|---|
| 49 | `type` enum('sketch','lineart','colored','story','oekaki') NOT NULL default 'sketch', |
|---|
| 50 | PRIMARY KEY (id), |
|---|
| 51 | UNIQUE KEY filename (filename) |
|---|
| 52 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 53 | SET character_set_client = @saved_cs_client; |
|---|
| 54 | |
|---|
| 55 | -- |
|---|
| 56 | -- Table structure for table `gallery_keywords` |
|---|
| 57 | -- |
|---|
| 58 | |
|---|
| 59 | DROP TABLE IF EXISTS gallery_keywords; |
|---|
| 60 | SET @saved_cs_client = @@character_set_client; |
|---|
| 61 | SET character_set_client = utf8; |
|---|
| 62 | CREATE TABLE gallery_keywords ( |
|---|
| 63 | id int(10) unsigned NOT NULL auto_increment, |
|---|
| 64 | keyword varchar(48) NOT NULL default '', |
|---|
| 65 | category varchar(48) NOT NULL default '', |
|---|
| 66 | description tinytext NOT NULL, |
|---|
| 67 | PRIMARY KEY (id), |
|---|
| 68 | UNIQUE KEY keyword (keyword) |
|---|
| 69 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 70 | SET character_set_client = @saved_cs_client; |
|---|
| 71 | |
|---|
| 72 | -- |
|---|
| 73 | -- Table structure for table `item_keywords` |
|---|
| 74 | -- |
|---|
| 75 | |
|---|
| 76 | DROP TABLE IF EXISTS item_keywords; |
|---|
| 77 | SET @saved_cs_client = @@character_set_client; |
|---|
| 78 | SET character_set_client = utf8; |
|---|
| 79 | CREATE TABLE item_keywords ( |
|---|
| 80 | itemid int(10) unsigned NOT NULL default '0', |
|---|
| 81 | keywordid int(10) unsigned NOT NULL default '0', |
|---|
| 82 | PRIMARY KEY (itemid,keywordid), |
|---|
| 83 | KEY itemid (itemid), |
|---|
| 84 | KEY keywordid (keywordid) |
|---|
| 85 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 86 | SET character_set_client = @saved_cs_client; |
|---|
| 87 | ; |
|---|
| 88 | |
|---|
| 89 | ; |
|---|
| 90 | ; |
|---|
| 91 | ; |
|---|
| 92 | ; |
|---|
| 93 | ; |
|---|
| 94 | ; |
|---|
| 95 | ; |
|---|