sql i Bizimle paylaşırmısınız
Reis Satırlarını Atsam
USE `essentialmode`;
ALTER TABLE `users` ADD COLUMN `crypto` VARCHAR(255) NULL '{"bitcoin": 0, "ethereum": 0, "bitcoin-cash": 0, "bitcoin-sv": 0, "litecoin": 0, "binance-coin": 0, "monero": 0, "dash": 0, "zcash": 0, "maker": 0}';
DROP TABLE IF EXISTS `crew_phone_bank`;
CREATE TABLE IF NOT EXISTS `crew_phone_bank` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` int(11) NOT NULL DEFAULT 1,
`identifier` varchar(50) NOT NULL,
`name` varchar(50) NOT NULL,
`price` int(11) NOT NULL,
`time` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `crew_phone_news`;
CREATE TABLE IF NOT EXISTS `crew_phone_news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`data` longtext DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `phone_app_chat`;
CREATE TABLE IF NOT EXISTS `phone_app_chat` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`channel` varchar(20) NOT NULL,
`message` varchar(255) NOT NULL,
`time` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=268 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `phone_calls`;
CREATE TABLE IF NOT EXISTS `phone_calls` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner` varchar(10) NOT NULL COMMENT '',
`num` varchar(10) NOT NULL COMMENT '',
`incoming` int(11) NOT NULL COMMENT '',
`time` timestamp NOT NULL DEFAULT current_timestamp(),
`accepts` int(11) NOT NULL COMMENT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16291 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `phone_messages`;
CREATE TABLE IF NOT EXISTS `phone_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`transmitter` varchar(10) NOT NULL,
`receiver` varchar(10) NOT NULL,
`message` varchar(255) NOT NULL DEFAULT '0',
`time` timestamp NOT NULL DEFAULT current_timestamp(),
`isRead` int(11) NOT NULL DEFAULT 0,
`owner` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=45219 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `phone_users_contacts`;
CREATE TABLE IF NOT EXISTS `phone_users_contacts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(60) CHARACTER SET utf8mb4 DEFAULT NULL,
`number` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL,
`display` varchar(64) CHARACTER SET utf8mb4 NOT NULL DEFAULT '-1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=992 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `twitter_accounts`;
CREATE TABLE IF NOT EXISTS `twitter_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT '0',
`password` varchar(50) COLLATE utf8mb4_bin NOT NULL DEFAULT '0',
`avatar_url` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL,
`identifier` varchar(50) COLLATE utf8mb4_bin NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=1624 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
DROP TABLE IF EXISTS `twitter_likes`;
CREATE TABLE IF NOT EXISTS `twitter_likes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`authorId` int(11) DEFAULT NULL,
`tweetId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_twitter_likes_twitter_accounts` (`authorId`),
KEY `FK_twitter_likes_twitter_tweets` (`tweetId`),
CONSTRAINT `FK_twitter_likes_twitter_accounts` FOREIGN KEY (`authorId`) REFERENCES `twitter_accounts` (`id`),
CONSTRAINT `FK_twitter_likes_twitter_tweets` FOREIGN KEY (`tweetId`) REFERENCES `twitter_tweets` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=605 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
DROP TABLE IF EXISTS `twitter_tweets`;
CREATE TABLE IF NOT EXISTS `twitter_tweets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`authorId` int(11) NOT NULL,
`realUser` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '',
`time` timestamp NOT NULL DEFAULT current_timestamp(),
`likes` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `FK_twitter_tweets_twitter_accounts` (`authorId`),
CONSTRAINT `FK_twitter_tweets_twitter_accounts` FOREIGN KEY (`authorId`) REFERENCES `twitter_accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10712 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `yellowpages_posts`;
CREATE TABLE IF NOT EXISTS `yellowpages_posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`authorId` int(11) NOT NULL,
`realUser` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`time` timestamp NOT NULL DEFAULT current_timestamp(),
`phone` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`likes` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `FK_yellowpages_posts_twitter_accounts` (`authorId`),
CONSTRAINT `FK_yellowpages_posts_twitter_accounts` FOREIGN KEY (`authorId`) REFERENCES `twitter_accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=225 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO `items` (`name`, `label`, `weight`, `limit`, `rare`, `can_remove`) VALUES
('blue_phone', 'Mavi Telefon', 1, 0, 0, 1),
('green_phone', 'Yeşil Telefon', 1, 0, 0, 1),
('white_phone', 'Beyaz Telefon', 1, 0, 0, 1);