+------------------+
| Tables_in_emlog |
+------------------+
| emlog_p_w_upload |
| emlog_blog |
| emlog_comment |
| emlog_link |
| emlog_navi |
| emlog_options |
| emlog_reply |
| emlog_sort |
| emlog_tag |
| emlog_trackback |
| emlog_twitter |
| emlog_user |
+------------------+
1.p_w_upload
+----------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+-----------------------+------+-----+---------+----------------+
| aid | smallint(5) unsigned | NO | PRI | NULL | auto_increment |
| blogid | mediumint(8) unsigned | NO | MUL | 0 | |
| filename | varchar(255) | NO | | | |
| filesize | int(10) | NO | | 0 | |
| filepath | varchar(255) | NO | | | |
| addtime | bigint(20) | NO | | 0 | |
| width | smallint(5) | NO | | 0 | |
| height | smallint(5) | NO | | 0 | |
| mimetype | varchar(40) | NO | | | |
| thumfor | smallint(5) | NO | | 0 | |
+----------+-----------------------+------+-----+---------+----------------+
2.blog;
+--------------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------+-----------------------+------+-----+---------+----------------+
| gid | mediumint(8) unsigned | NO | PRI | NULL | auto_increment |
| title | varchar(255) | NO | | | |
| date | bigint(20) | NO | MUL | NULL | |
| content | longtext | NO | | NULL | |
| excerpt | longtext | NO | | NULL | |
| alias | varchar(200) | NO | | | |
| author | int(10) | NO | MUL | 1 | |
| sortid | tinyint(3) | NO | MUL | -1 | |
| type | varchar(20) | NO | MUL | blog | |
| views | mediumint(8) unsigned | NO | MUL | 0 | |
| comnum | mediumint(8) unsigned | NO | MUL | 0 | |
| tbcount | mediumint(8) unsigned | NO | | 0 | |
| attnum | mediumint(8) unsigned | NO | | 0 | |
| top | enum('n','y') | NO | | n | |
| hide | enum('n','y') | NO | MUL | n | |
| allow_remark | enum('n','y') | NO | | y | |
| allow_tb | enum('n','y') | NO | | y | |
| password | varchar(255) | NO | | | |
+--------------+-----------------------+------+-----+---------+----------------+
mysql> desc emlog_comment;
+---------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+-----------------------+------+-----+---------+----------------+
| cid | mediumint(8) unsigned | NO | PRI | NULL | auto_increment |
| gid | mediumint(8) unsigned | NO | MUL | 0 | |
| pid | mediumint(8) unsigned | NO | | 0 | |
| date | bigint(20) | NO | MUL | NULL | |
| poster | varchar(20) | NO | | | |
| comment | text | NO | | NULL | |
| mail | varchar(60) | NO | | | |
| url | varchar(75) | NO | | | |
| ip | varchar(128) | NO | | | |
| hide | enum('n','y') | NO | MUL | n | |
+---------+-----------------------+------+-----+---------+----------------+
mysql> desc emlog_link;
+-------------+----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+----------------------+------+-----+---------+----------------+
| id | smallint(4) unsigned | NO | PRI | NULL | auto_increment |
| sitename | varchar(30) | NO | | | |
| siteurl | varchar(75) | NO | | | |
| description | varchar(255) | NO | | | |
| hide | enum('n','y') | NO | | n | |
| taxis | smallint(4) unsigned | NO | | 0 | |
+-------------+----------------------+------+-----+---------+----------------+
mysql> desc emlog_navi;
+-----------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-----------------------+------+-----+---------+----------------+
| id | smallint(4) unsigned | NO | PRI | NULL | auto_increment |
| naviname | varchar(30) | NO | | | |
| url | varchar(75) | NO | | | |
| newtab | enum('n','y') | NO | | n | |
| hide | enum('n','y') | NO | | n | |
| taxis | smallint(4) unsigned | NO | | 0 | |
| isdefault | enum('n','y') | NO | | n | |
| type | tinyint(3) unsigned | NO | | 0 | |
| type_id | mediumint(8) unsigned | NO | | 0 | |
+-----------+-----------------------+------+-----+---------+----------------+
mysql> desc emlog_options;
+--------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------+------------------+------+-----+---------+----------------+
| option_id | int(11) unsigned | NO | PRI | NULL | auto_increment |
| option_name | varchar(255) | NO | MUL | NULL | |
| option_value | longtext | NO | | NULL | |
+--------------+------------------+------+-----+---------+----------------+
mysql> desc emlog_reply;
+---------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+-----------------------+------+-----+---------+----------------+
| id | mediumint(8) unsigned | NO | PRI | NULL | auto_increment |
| tid | mediumint(8) unsigned | NO | MUL | 0 | |
| date | bigint(20) | NO | | NULL | |
| name | varchar(20) | NO | | | |
| content | text | NO | | NULL | |
| hide | enum('n','y') | NO | MUL | n | |
| ip | varchar(128) | NO | | | |
+---------+-----------------------+------+-----+---------+----------------+
mysql> desc emlog_sort;
+-------------+----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+----------------------+------+-----+---------+----------------+
| sid | tinyint(3) unsigned | NO | PRI | NULL | auto_increment |
| sortname | varchar(255) | NO | | | |
| alias | varchar(200) | NO | | | |
| taxis | smallint(4) unsigned | NO | | 0 | |
| pid | tinyint(3) unsigned | NO | | 0 | |
| description | text | NO | | NULL | |
+-------------+----------------------+------+-----+---------+----------------+
mysql> desc emlog_tag;
+---------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+-----------------------+------+-----+---------+----------------+
| tid | mediumint(8) unsigned | NO | PRI | NULL | auto_increment |
| tagname | varchar(60) | NO | MUL | | |
| gid | text | NO | | NULL | |
+---------+-----------------------+------+-----+---------+----------------+
mysql> desc emlog_trackback;
+-----------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-----------------------+------+-----+---------+----------------+
| tbid | mediumint(8) unsigned | NO | PRI | NULL | auto_increment |
| gid | mediumint(8) unsigned | NO | MUL | 0 | |
| title | varchar(255) | NO | | | |
| date | bigint(20) | NO | | NULL | |
| excerpt | text | NO | | NULL | |
| url | varchar(255) | NO | | | |
| blog_name | varchar(255) | NO | | | |
| ip | varchar(16) | NO | | | |
+-----------+-----------------------+------+-----+---------+----------------+
mysql> desc emlog_twitter;
+----------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+-----------------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| content | text | NO | | NULL | |
| img | varchar(200) | YES | | NULL | |
| author | int(10) | NO | MUL | 1 | |
| date | bigint(20) | NO | | NULL | |
| replynum | mediumint(8) unsigned | NO | | 0 | |
+----------+-----------------------+------+-----+---------+----------------+
mysql> desc emlog_user;
+-------------+---------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------------+------+-----+---------+----------------+
| uid | tinyint(3) unsigned | NO | PRI | NULL | auto_increment |
| username | varchar(32) | NO | MUL | | |
| password | varchar(64) | NO | | | |
| nickname | varchar(20) | NO | | | |
| role | varchar(60) | NO | | | |
| photo | varchar(255) | NO | | | |
| email | varchar(60) | NO | | | |
| description | varchar(255) | NO | | | |
+-------------+---------------------+------+-----+---------+----------------+