CREATE TABLE IF NOT EXISTS `roadshop_accounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `firstname` varchar(20) NOT NULL,
  `lastname` varchar(20) NOT NULL,
  `mail` varchar(80) NOT NULL,
  `birth` varchar(50) DEFAULT NULL,
  `password` varchar(256) NOT NULL,
  `profile` varchar(265) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `mail` (`mail`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

CREATE TABLE IF NOT EXISTS `roadshop_banktransfer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sender` varchar(30) NOT NULL DEFAULT '0',
  `receiver` varchar(30) NOT NULL DEFAULT '0',
  `reason` varchar(50) DEFAULT NULL,
  `amount` int(11) NOT NULL DEFAULT 0,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_calls` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) DEFAULT NULL,
  `number` varchar(50) DEFAULT NULL,
  `isincoming` int(2) NOT NULL DEFAULT 0,
  `anonym` int(2) NOT NULL DEFAULT 0,
  `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_camera` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL,
  `picture` longtext NOT NULL,
  `isFavourite` int(2) NOT NULL DEFAULT 0,
  `isDeleted` int(2) NOT NULL DEFAULT 0,
  `time` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_contacts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL DEFAULT '0',
  `firstname` varchar(12) NOT NULL DEFAULT '0',
  `lastname` varchar(12) DEFAULT '0',
  `number` varchar(30) NOT NULL DEFAULT '0',
  `picture` varchar(512) NOT NULL DEFAULT '/public/img/user.png',
  `company` varchar(20) DEFAULT NULL,
  `note` varchar(256) DEFAULT NULL,
  `mail` varchar(50) DEFAULT NULL,
  `favourite` int(2) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

CREATE TABLE IF NOT EXISTS `roadshop_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL DEFAULT '0',
  `tabletsetup` int(2) NOT NULL DEFAULT 0,
  `phonesetup` int(2) NOT NULL DEFAULT 0,
  `crypto` varchar(512) NOT NULL DEFAULT '{}',
  PRIMARY KEY (`id`),
  UNIQUE KEY `identifier` (`identifier`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_group_messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `owner` varchar(80) NOT NULL DEFAULT '0',
  `identifier` varchar(80) DEFAULT NULL,
  `name` varchar(25) NOT NULL DEFAULT '0',
  `image` varchar(255) NOT NULL DEFAULT '0',
  `members` longtext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_connect_accounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `firstname` varchar(50) NOT NULL,
  `lastname` varchar(50) NOT NULL,
  `username` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `password` longtext NOT NULL,
  `avatar_url` longtext DEFAULT NULL,
  `follower` longtext DEFAULT NULL,
  `follows` longtext DEFAULT NULL,
  `verify` int(2) NOT NULL DEFAULT 0,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `username` (`username`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

CREATE TABLE IF NOT EXISTS `roadshop_connect_posts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `authorId` int(11) NOT NULL,
  `identifier` varchar(80) DEFAULT NULL,
  `message` longtext NOT NULL,
  `picture` longtext NOT NULL,
  `filter` varchar(80) NOT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  `likes` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `FK_roadshop_connect_posts_roadshop_connect_accounts` (`authorId`),
  CONSTRAINT `FK_roadshop_connect_posts_roadshop_connect_accounts` FOREIGN KEY (`authorId`) REFERENCES `roadshop_connect_accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


CREATE TABLE IF NOT EXISTS `roadshop_connect_likes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `authorId` int(11) DEFAULT NULL,
  `post` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_roadshop_connect_likes_roadshop_connect_accounts` (`authorId`),
  KEY `FK_roadshop_connect_likes_roadshop_connect_posts` (`post`),
  CONSTRAINT `FK_roadshop_connect_likes_roadshop_connect_accounts` FOREIGN KEY (`authorId`) REFERENCES `roadshop_connect_accounts` (`id`),
  CONSTRAINT `FK_roadshop_connect_likes_roadshop_connect_posts` FOREIGN KEY (`post`) REFERENCES `roadshop_connect_posts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;


CREATE TABLE IF NOT EXISTS `roadshop_connect_comment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `authorId` int(11) DEFAULT NULL,
  `postid` int(11) DEFAULT NULL,
  `message` varchar(500) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `FK_roadshop_connect_comment_roadshop_connect_accounts` (`authorId`),
  KEY `FK_roadshop_connect_comment_roadshop_connect_posts` (`postid`),
  CONSTRAINT `FK_roadshop_connect_comment_roadshop_connect_accounts` FOREIGN KEY (`authorId`) REFERENCES `roadshop_connect_accounts` (`id`),
  CONSTRAINT `FK_roadshop_connect_comment_roadshop_connect_posts` FOREIGN KEY (`postid`) REFERENCES `roadshop_connect_posts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

CREATE TABLE IF NOT EXISTS `roadshop_connect_storys` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `authorId` int(11) NOT NULL DEFAULT 0,
  `image` varchar(400) NOT NULL,
  `viewed` int(2) NOT NULL DEFAULT 0,
  `time` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `FK_roadshop_connect_accounts` (`authorId`),
  CONSTRAINT `FK_roadshop_connect_accounts` FOREIGN KEY (`authorId`) REFERENCES `roadshop_connect_accounts` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_jobs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sender` varchar(50) NOT NULL,
  `job` varchar(30) NOT NULL,
  `message` varchar(120) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `gps` varchar(500) DEFAULT NULL,
  `status` int(2) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_mails` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sender` varchar(50) NOT NULL DEFAULT '0',
  `sendermail` varchar(80) NOT NULL DEFAULT '0',
  `receivermail` varchar(80) NOT NULL DEFAULT '0',
  `receiver` varchar(80) DEFAULT NULL,
  `title` varchar(80) NOT NULL DEFAULT '0',
  `message` longtext NOT NULL,
  `image` varchar(120) DEFAULT NULL,
  `button` text DEFAULT NULL,
  `isSystem` int(2) DEFAULT 0,
  `read` int(2) DEFAULT 0,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sender` varchar(50) NOT NULL,
  `receiver` varchar(50) NOT NULL,
  `message` longtext NOT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  `isOwner` int(11) NOT NULL DEFAULT 0,
  `isRead` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `roadshop_messages_groups_message` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `groupid` int(11) NOT NULL,
  `sender` varchar(80) NOT NULL,
  `message` longtext NOT NULL,
  `members` longtext NOT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_notes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL DEFAULT '0',
  `title` varchar(30) NOT NULL DEFAULT '0',
  `text` longtext NOT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_tellonym_accounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL,
  `username` varchar(20) NOT NULL DEFAULT '0',
  `mail` varchar(80) NOT NULL,
  `password` varchar(64) NOT NULL DEFAULT '0',
  `avatar_url` varchar(512) NOT NULL DEFAULT '/public/img/user.png',
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`),
  UNIQUE KEY `mail` (`mail`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_tellonym_tells` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `senderId` int(11) DEFAULT NULL,
  `receiverId` int(11) NOT NULL,
  `text` longtext NOT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `receiverId` (`receiverId`),
  CONSTRAINT `FK_roadshop_tellonym_tells_roadshop_tellonym_accounts` FOREIGN KEY (`receiverId`) REFERENCES `roadshop_tellonym_accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_tellonym_tells_answered` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `senderId` int(11) NOT NULL DEFAULT 0,
  `userId` int(11) NOT NULL,
  `question` longtext NOT NULL,
  `answer` longtext NOT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  `likes` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `FK__roadshop_tellonym_accounts` (`userId`),
  CONSTRAINT `FK__roadshop_tellonym_accounts` FOREIGN KEY (`userId`) REFERENCES `roadshop_tellonym_accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_tweetwave_accounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '0',
  `password` varchar(64) NOT NULL DEFAULT '0',
  `avatar_url` longtext DEFAULT NULL,
  `verify` int(2) NOT NULL DEFAULT 0,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `username` (`username`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

CREATE TABLE IF NOT EXISTS `roadshop_tweetwave_tweets` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `authorId` int(11) NOT NULL,
  `realUser` varchar(50) DEFAULT NULL,
  `message` varchar(256) NOT NULL,
  `image` longtext DEFAULT NULL,
  `time` timestamp NOT NULL DEFAULT current_timestamp(),
  `likes` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `FK_roadshop_tweetwave_tweets_roadshop_tweetwave_accounts` (`authorId`),
  CONSTRAINT `FK_roadshop_tweetwave_tweets_roadshop_tweetwave_accounts` FOREIGN KEY (`authorId`) REFERENCES `roadshop_tweetwave_accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `roadshop_tweetwave_likes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `authorId` int(11) DEFAULT NULL,
  `tweetId` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_roadshop_tweetwave_likes_roadshop_tweetwave_accounts` (`authorId`),
  KEY `FK_roadshop_tweetwave_likes_roadshop_tweetwave_tweets` (`tweetId`),
  CONSTRAINT `FK_roadshop_tweetwave_likes_roadshop_tweetwave_accounts` FOREIGN KEY (`authorId`) REFERENCES `roadshop_tweetwave_accounts` (`id`),
  CONSTRAINT `FK_roadshop_tweetwave_likes_roadshop_tweetwave_tweets` FOREIGN KEY (`tweetId`) REFERENCES `roadshop_tweetwave_tweets` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

CREATE TABLE IF NOT EXISTS `roadshop_tweetwave_comment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `authorId` int(11) DEFAULT NULL,
  `postid` int(11) DEFAULT NULL,
  `message` varchar(500) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `FK_roadshop_tweetwave_comment_roadshop_tweetwave_accounts` (`authorId`),
  KEY `FK_roadshop_tweetwave_comment_roadshop_tweetwave_tweets` (`postid`),
  CONSTRAINT `FK_roadshop_tweetwave_comment_roadshop_tweetwave_accounts` FOREIGN KEY (`authorId`) REFERENCES `roadshop_tweetwave_accounts` (`id`),
  CONSTRAINT `FK_roadshop_tweetwave_comment_roadshop_tweetwave_tweets` FOREIGN KEY (`postid`) REFERENCES `roadshop_tweetwave_tweets` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

CREATE TABLE IF NOT EXISTS `roadshop_advertising` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL DEFAULT '0',
  `number` varchar(50) NOT NULL,
  `title` varchar(20) NOT NULL,
  `text` varchar(120) NOT NULL,
  `image` varchar(800) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `roadshop_news` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL DEFAULT '0',
  `number` varchar(30) NOT NULL DEFAULT '0',
  `title` varchar(20) NOT NULL,
  `text` varchar(120) NOT NULL,
  `image` varchar(800) DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `roadshop_service_messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sender` varchar(80) NOT NULL,
  `receiver` varchar(80) NOT NULL,
  `message` longtext NOT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  `isOwner` int(11) NOT NULL DEFAULT 0,
  `isRead` int(11) NOT NULL DEFAULT 0,
  `isDispatch` int(11) NOT NULL DEFAULT 0,
  `isAccepted` int(11) NOT NULL DEFAULT 0,
  `isFinished` int(11) NOT NULL DEFAULT 0,
  `isDeclined` int(11) NOT NULL DEFAULT 0,
  `isAnonym` int(11) DEFAULT 0,
  `image` longtext DEFAULT NULL,
  `coords` varchar(512) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `roadshop_voice_memos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL DEFAULT '0',
  `name` varchar(30) DEFAULT NULL,
  `text` varchar(255) NOT NULL DEFAULT '0',
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_music_playlists` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL,
  `title` varchar(25) NOT NULL,
  `image` varchar(265) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_music_playlists_songs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `playlistId` int(11) DEFAULT NULL,
  `songid` varchar(50) NOT NULL DEFAULT '0',
  `song` varchar(200) NOT NULL DEFAULT '0',
  `artist` varchar(200) NOT NULL DEFAULT '0',
  `image` varchar(265) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `playlistId` (`playlistId`),
  CONSTRAINT `FK__roadshop_music_playlists` FOREIGN KEY (`playlistId`) REFERENCES `roadshop_music_playlists` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_darkchat_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(25) NOT NULL DEFAULT '0',
  `members` longtext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_darkchat_group_messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `groupname` varchar(25) NOT NULL DEFAULT '0',
  `sender` varchar(80) NOT NULL,
  `message` longtext NOT NULL,
  `members` longtext NOT NULL,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_livestream_accounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL,
  `username` varchar(20) NOT NULL DEFAULT '0',
  `password` varchar(64) NOT NULL DEFAULT '0',
  `avatar_url` varchar(512) NOT NULL DEFAULT '/public/img/user.png',
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_notifications` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL DEFAULT '0',
  `apptitle` varchar(80) NOT NULL DEFAULT '0',
  `title` varchar(80) NOT NULL DEFAULT '0',
  `message` longtext NOT NULL,
  `img` varchar(512) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `roadshop_blocked_numbers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `identifier` varchar(80) NOT NULL DEFAULT '0',
  `numbers` longtext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;


ALTER TABLE `players` ADD phone_number VARCHAR(20) NULL;
