Codice:
CREATE TABLE IF NOT EXISTS `ask_data` (
id int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
ask varchar(600) DEFAULT NULL,
lang char(3) DEFAULT '',
standart smallint(3) UNSIGNED DEFAULT NULL,
time int(10) UNSIGNED DEFAULT NULL,
ip_addr CHAR(32) NOT NULL DEFAULT '',
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `notify_data`(
id int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
to_id int(11) UNSIGNED NOT NULL DEFAULT 0,
cat smallint(3) UNSIGNED DEFAULT 0,
notify_id int(11) UNSIGNED NOT NULL DEFAULT 0,
time int(10) UNSIGNED DEFAULT NULL,
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `offer_data` (
id int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
ask_id int(11) UNSIGNED NOT NULL DEFAULT 0,
from_id int(11) UNSIGNED NOT NULL DEFAULT 0,
answers_count smallint(3) UNSIGNED DEFAULT 0,
CREATE TABLE IF NOT EXISTS `robot_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
ip_addr CHAR(32) NOT NULL DEFAULT '',
last_action INT(11) UNSIGNED NOT NULL DEFAULT 0,
count_action INT(11) UNSIGNED NOT NULL DEFAULT 0,
all_actions INT(11) UNSIGNED NOT NULL DEFAULT 0,
user_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `blocked_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
ip_addr CHAR(32) NOT NULL DEFAULT '',
blocked_time INT(11) UNSIGNED NOT NULL DEFAULT 0,
CREATE TABLE IF NOT EXISTS `gifts` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
url VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
price INT(11) UNSIGNED NOT NULL DEFAULT 0,
time INT(11) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `gifts_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
gift_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
from_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
to_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
hide INT(11) UNSIGNED NOT NULL DEFAULT 0,
msg_data VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
time INT(11) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `payment_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
action INT(11) UNSIGNED NOT NULL DEFAULT 0,
from_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
to_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
hide INT(11) UNSIGNED NOT NULL DEFAULT 0,
msg_data VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
time INT(11) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `url_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
user_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
url VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
time INT(11) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `refs_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
ref_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
to_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
time INT(11) UNSIGNED NOT NULL DEFAULT 0,
CREATE TABLE IF NOT EXISTS `msg_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
from_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
to_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
msg_hash char(16) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
msg_data VARCHAR(700) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
time INT(11) UNSIGNED NOT NULL DEFAULT 0,
hide_from_id SMALLINT(6) UNSIGNED NOT NULL DEFAULT 0,
hide_to_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
photo_url VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
video_url VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `black_list` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
from_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
block_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
time INT(11) UNSIGNED DEFAULT 0,
CREATE TABLE IF NOT EXISTS `ask_like` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
to_ask_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
to_ask_hash char(16) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
from_user_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
to_user_id INT(11) UNSIGNED NOT NULL DEFAULT 0,
hide SMALLINT(6) UNSIGNED NOT NULL DEFAULT 0,
time INT(11) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `questions` (
id int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
ask_id varchar(600) DEFAULT NULL,
ask_hash char(16) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
reply_lang VARCHAR(10) DEFAULT '',
answer varchar(600) DEFAULT '',
to_id int(11) UNSIGNED DEFAULT NULL,
from_id int(11) UNSIGNED DEFAULT NULL,
hide_id int(11) UNSIGNED DEFAULT 0,
time int(11) UNSIGNED DEFAULT NULL,
photo_url VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
video_url VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `album_data` (
id int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
user_id varchar(600) DEFAULT NULL,
comment varchar(600) DEFAULT '',
time int(11) UNSIGNED DEFAULT NULL,
access int(11) UNSIGNED DEFAULT NULL,
type int(11) UNSIGNED DEFAULT NULL,
photo_url VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `comments` (
id int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
ask_id varchar(600) DEFAULT NULL,
comment varchar(600) DEFAULT '',
to_id int(11) UNSIGNED DEFAULT NULL,
from_id int(11) UNSIGNED DEFAULT NULL,
hide int(11) UNSIGNED DEFAULT 0,
time int(11) UNSIGNED DEFAULT NULL,
ip_addr CHAR(32) NOT NULL DEFAULT '',
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `support_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
from_id INT(11) UNSIGNED DEFAULT 0,
ticket_time INT(11) UNSIGNED DEFAULT 0,
reply_time INT(11) UNSIGNED DEFAULT 0,
email CHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
ticket VARCHAR(600) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
reply VARCHAR(600) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
ip_addr CHAR(32) NOT NULL DEFAULT '',
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `answer_report_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
answer_id INT(11) UNSIGNED DEFAULT 0,
from_id INT(11) UNSIGNED DEFAULT 0,
level INT(11) UNSIGNED DEFAULT 0,
time INT(11) UNSIGNED DEFAULT 0,
count INT(11) UNSIGNED DEFAULT 0,
ip_addr CHAR(32) NOT NULL DEFAULT '',
CREATE TABLE IF NOT EXISTS `users_report_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
user_id INT(11) UNSIGNED DEFAULT 0,
from_id INT(11) UNSIGNED DEFAULT 0,
level INT(11) UNSIGNED DEFAULT 0,
time INT(11) UNSIGNED DEFAULT 0,
count INT(11) UNSIGNED DEFAULT 0,
ip_addr CHAR(32) NOT NULL DEFAULT '',
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `admin` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
mode SMALLINT(11) UNSIGNED DEFAULT 1,
time INT(11) UNSIGNED DEFAULT 0,
name CHAR(50) DEFAULT '',
salt CHAR(3) DEFAULT '',
passw CHAR(32) DEFAULT '',
login CHAR(32) DEFAULT '',
ip_addr CHAR(32) NOT NULL DEFAULT '',
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `friends_data` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
friend_id INT(11) UNSIGNED DEFAULT 0,
friend_to_id INT(11) UNSIGNED DEFAULT 0,
time INT(11) UNSIGNED DEFAULT 0,
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci");
CREATE TABLE IF NOT EXISTS `db_watch` (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
user_id INT(11) UNSIGNED DEFAULT 0,
request CHAR(150) DEFAULT '',
ip_addr CHAR(32) NOT NULL DEFAULT '',
time INT(11) UNSIGNED DEFAULT 0,
PRIMARY KEY (id)) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci
grazie mille se mi aiutate