| 1 | # |
|---|
| 2 | # Table structure for table `stories` |
|---|
| 3 | # |
|---|
| 4 | |
|---|
| 5 | CREATE TABLE stories ( |
|---|
| 6 | storyid int(8) unsigned NOT NULL auto_increment, |
|---|
| 7 | uid int(5) unsigned NOT NULL default '0', |
|---|
| 8 | title varchar(255) NOT NULL default '', |
|---|
| 9 | created int(10) unsigned NOT NULL default '0', |
|---|
| 10 | published int(10) unsigned NOT NULL default '0', |
|---|
| 11 | expired int(10) UNSIGNED NOT NULL default '0', |
|---|
| 12 | hostname varchar(20) NOT NULL default '', |
|---|
| 13 | nohtml tinyint(1) NOT NULL default '0', |
|---|
| 14 | nosmiley tinyint(1) NOT NULL default '0', |
|---|
| 15 | hometext text NOT NULL, |
|---|
| 16 | bodytext text NOT NULL, |
|---|
| 17 | counter int(8) unsigned NOT NULL default '0', |
|---|
| 18 | topicid smallint(4) unsigned NOT NULL default '1', |
|---|
| 19 | ihome tinyint(1) NOT NULL default '0', |
|---|
| 20 | notifypub tinyint(1) NOT NULL default '0', |
|---|
| 21 | story_type varchar(5) NOT NULL default '', |
|---|
| 22 | topicdisplay tinyint(1) NOT NULL default '0', |
|---|
| 23 | topicalign char(1) NOT NULL default 'R', |
|---|
| 24 | comments smallint(5) unsigned NOT NULL default '0', |
|---|
| 25 | PRIMARY KEY (storyid), |
|---|
| 26 | KEY idxstoriestopic (topicid), |
|---|
| 27 | KEY ihome (ihome), |
|---|
| 28 | KEY uid (uid), |
|---|
| 29 | KEY published_ihome (published,ihome), |
|---|
| 30 | KEY title (title(40)), |
|---|
| 31 | KEY created (created), |
|---|
| 32 | FULLTEXT KEY search (title,hometext,bodytext) |
|---|
| 33 | ) TYPE=MyISAM; |
|---|
| 34 | # -------------------------------------------------------- |
|---|
| 35 | |
|---|
| 36 | # |
|---|
| 37 | # Table structure for table `topics` |
|---|
| 38 | # |
|---|
| 39 | |
|---|
| 40 | CREATE TABLE topics ( |
|---|
| 41 | topic_id smallint(4) unsigned NOT NULL auto_increment, |
|---|
| 42 | topic_pid smallint(4) unsigned NOT NULL default '0', |
|---|
| 43 | topic_imgurl varchar(20) NOT NULL default '', |
|---|
| 44 | topic_title varchar(50) NOT NULL default '', |
|---|
| 45 | PRIMARY KEY (topic_id), |
|---|
| 46 | KEY pid (topic_pid) |
|---|
| 47 | ) TYPE=MyISAM; |
|---|
| 48 | |
|---|
| 49 | INSERT INTO topics VALUES (1,0,'xoops.gif','XOOPS'); |
|---|