-- MySQL dump 10.13 Distrib 5.7.33, for Linux (x86_64)
--
-- Host: localhost Database: test_swedish_db
-- ------------------------------------------------------
-- Server version 5.7.33
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `bots`
--
DROP TABLE IF EXISTS `bots`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bots` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` text NOT NULL,
`token` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bots`
--
LOCK TABLES `bots` WRITE;
/*!40000 ALTER TABLE `bots` DISABLE KEYS */;
/*!40000 ALTER TABLE `bots` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dic_ads`
--
DROP TABLE IF EXISTS `dic_ads`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dic_ads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(50) NOT NULL,
`adsid` varchar(50) NOT NULL,
`timeStamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `userid` (`userid`),
KEY `userid_2` (`userid`),
KEY `adsid` (`adsid`),
KEY `timeStamp` (`timeStamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dic_ads`
--
LOCK TABLES `dic_ads` WRITE;
/*!40000 ALTER TABLE `dic_ads` DISABLE KEYS */;
/*!40000 ALTER TABLE `dic_ads` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dic_ads_pool`
--
DROP TABLE IF EXISTS `dic_ads_pool`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dic_ads_pool` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`adsID` varchar(25) NOT NULL,
`msgID` varchar(15) NOT NULL,
`chatID` varchar(15) NOT NULL,
`botID` enum('@TranslateGerman_bot','@TranslateGerman2_bot','@TranslateGerman3_bot','@Test_TranslateGerman_bot') NOT NULL,
`adsSent` int(11) NOT NULL DEFAULT '0',
`adsLimit` int(11) NOT NULL DEFAULT '0',
`active` tinyint(1) NOT NULL DEFAULT '0',
`timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dic_ads_pool`
--
LOCK TABLES `dic_ads_pool` WRITE;
/*!40000 ALTER TABLE `dic_ads_pool` DISABLE KEYS */;
/*!40000 ALTER TABLE `dic_ads_pool` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dic_conjunction`
--
DROP TABLE IF EXISTS `dic_conjunction`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dic_conjunction` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`verb` char(200) COLLATE utf8_bin NOT NULL,
`form` char(100) CHARACTER SET utf8 NOT NULL,
`person` char(10) COLLATE utf8_bin NOT NULL,
`infinitive` varchar(300) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dic_conjunction`
--
LOCK TABLES `dic_conjunction` WRITE;
/*!40000 ALTER TABLE `dic_conjunction` DISABLE KEYS */;
/*!40000 ALTER TABLE `dic_conjunction` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dic_fasv`
--
DROP TABLE IF EXISTS `dic_fasv`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dic_fasv` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`word` varchar(68) DEFAULT NULL,
`translation` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=38029 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dic_fasv`
--
LOCK TABLES `dic_fasv` WRITE;
/*!40000 ALTER TABLE `dic_fasv` DISABLE KEYS */;
/*!40000 ALTER TABLE `dic_fasv` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dic_phrases`
--
DROP TABLE IF EXISTS `dic_phrases`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dic_phrases` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`word` varchar(40) NOT NULL,
`sentence` text NOT NULL,
`translation` text NOT NULL,
`timeStamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dic_phrases`
--
LOCK TABLES `dic_phrases` WRITE;
/*!40000 ALTER TABLE `dic_phrases` DISABLE KEYS */;
/*!40000 ALTER TABLE `dic_phrases` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dic_suggested_users`
--
DROP TABLE IF EXISTS `dic_suggested_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dic_suggested_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(200) NOT NULL,
`suggestedid` varchar(200) NOT NULL,
`Datum` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dic_suggested_users`
--
LOCK TABLES `dic_suggested_users` WRITE;
/*!40000 ALTER TABLE `dic_suggested_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `dic_suggested_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dic_svfa`
--
DROP TABLE IF EXISTS `dic_svfa`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dic_svfa` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`word` varchar(69) DEFAULT NULL,
`translation` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32739 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dic_svfa`
--
LOCK TABLES `dic_svfa` WRITE;
/*!40000 ALTER TABLE `dic_svfa` DISABLE KEYS */;
/*!40000 ALTER TABLE `dic_svfa` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dic_word_suggestion`
--
DROP TABLE IF EXISTS `dic_word_suggestion`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dic_word_suggestion` (
`id` int(11) NOT NULL DEFAULT '0',
`searchedWord` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dic_word_suggestion`
--
LOCK TABLES `dic_word_suggestion` WRITE;
/*!40000 ALTER TABLE `dic_word_suggestion` DISABLE KEYS */;
/*!40000 ALTER TABLE `dic_word_suggestion` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dictionary`
--
DROP TABLE IF EXISTS `dictionary`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dictionary` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`artikel` varchar(10) NOT NULL,
`word` text CHARACTER SET utf8 NOT NULL,
`perfect` varchar(100) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`plural` text CHARACTER SET utf8 NOT NULL,
`reflexive` tinyint(1) NOT NULL,
`translation` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`example` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`exampletranslation` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`status` text CHARACTER SET utf8 NOT NULL,
`soundFile` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`translationrate` int(11) NOT NULL,
`searchedWord` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dictionary`
--
LOCK TABLES `dictionary` WRITE;
/*!40000 ALTER TABLE `dictionary` DISABLE KEYS */;
/*!40000 ALTER TABLE `dictionary` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dictionary_merged`
--
DROP TABLE IF EXISTS `dictionary_merged`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dictionary_merged` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`artikel` varchar(10) NOT NULL,
`word` text CHARACTER SET utf8 NOT NULL,
`type` varchar(20) NOT NULL,
`perfect` varchar(100) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`plural` text CHARACTER SET utf8 NOT NULL,
`reflexive` tinyint(1) NOT NULL,
`translation` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`example` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`exampletranslation` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`status` text CHARACTER SET utf8 NOT NULL,
`soundFile` text CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`translationrate` int(11) NOT NULL,
`searchedWord` varchar(90) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
`converted` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `searchedWord` (`searchedWord`)
) ENGINE=InnoDB AUTO_INCREMENT=260716 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dictionary_merged`
--
LOCK TABLES `dictionary_merged` WRITE;
/*!40000 ALTER TABLE `dictionary_merged` DISABLE KEYS */;
/*!40000 ALTER TABLE `dictionary_merged` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dicusers`
--
DROP TABLE IF EXISTS `dicusers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dicusers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(200) CHARACTER SET latin1 NOT NULL,
`username` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`lastname` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`invitesent` int(11) DEFAULT '0',
`latitude` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`longitude` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`step` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT 'userIsTranslating',
`adminApproveStatus` varchar(300) CHARACTER SET latin1 DEFAULT NULL,
`role` enum('USER','TRANSLATOR','EDITOR','ADMIN') CHARACTER SET latin1 NOT NULL,
`keyboard` enum('DEACTIVATED','ACTIVATED','DISABLE','') CHARACTER SET latin1 NOT NULL,
`trust` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `userid` (`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=3007 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dicusers`
--
LOCK TABLES `dicusers` WRITE;
/*!40000 ALTER TABLE `dicusers` DISABLE KEYS */;
/*!40000 ALTER TABLE `dicusers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dicusers_bots`
--
DROP TABLE IF EXISTS `dicusers_bots`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dicusers_bots` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`botID` enum('@TranslateSwedish_bot','@TranslateSwedish3_bot','') COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`userID` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`active` tinyint(1) NOT NULL DEFAULT '1',
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `botID` (`botID`),
KEY `userID` (`userID`)
) ENGINE=InnoDB AUTO_INCREMENT=3016 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dicusers_bots`
--
LOCK TABLES `dicusers_bots` WRITE;
/*!40000 ALTER TABLE `dicusers_bots` DISABLE KEYS */;
/*!40000 ALTER TABLE `dicusers_bots` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dicusers_contribution`
--
DROP TABLE IF EXISTS `dicusers_contribution`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dicusers_contribution` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`artikel` varchar(3) COLLATE utf8_persian_ci NOT NULL,
`word` text CHARACTER SET utf8 NOT NULL,
`type` varchar(20) COLLATE utf8_persian_ci NOT NULL,
`plural` varchar(40) COLLATE utf8_persian_ci NOT NULL,
`problemType` varchar(100) COLLATE utf8_persian_ci NOT NULL DEFAULT 'AddNewWord',
`translation` text COLLATE utf8_persian_ci NOT NULL,
`soundFile` varchar(50) COLLATE utf8_persian_ci DEFAULT NULL,
`relatedWord` text COLLATE utf8_persian_ci,
`rate` int(11) NOT NULL DEFAULT '0',
`wordLanguage` varchar(100) COLLATE utf8_persian_ci NOT NULL,
`userid` varchar(500) COLLATE utf8_persian_ci NOT NULL,
`status` varchar(200) COLLATE utf8_persian_ci NOT NULL,
`message_id` varchar(200) COLLATE utf8_persian_ci DEFAULT NULL,
`adminOpinion` varchar(200) COLLATE utf8_persian_ci DEFAULT NULL,
`askedByUser` varchar(200) COLLATE utf8_persian_ci DEFAULT NULL,
`insertedTime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dicusers_contribution`
--
LOCK TABLES `dicusers_contribution` WRITE;
/*!40000 ALTER TABLE `dicusers_contribution` DISABLE KEYS */;
/*!40000 ALTER TABLE `dicusers_contribution` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_activities`
--
DROP TABLE IF EXISTS `user_activities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_activities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(200) COLLATE utf8_persian_ci NOT NULL,
`intent_id` int(11) NOT NULL DEFAULT '-1',
`searchedWord` varchar(200) COLLATE utf8_persian_ci NOT NULL,
`translated` tinyint(1) NOT NULL,
`trdate` datetime NOT NULL,
`todayAsked` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `userid` (`userid`),
KEY `searchedWord` (`searchedWord`)
) ENGINE=MyISAM AUTO_INCREMENT=10559 DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_activities`
--
LOCK TABLES `user_activities` WRITE;
/*!40000 ALTER TABLE `user_activities` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_activities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Temporary table structure for view `usersactivity_till_now`
--
DROP TABLE IF EXISTS `usersactivity_till_now`;
/*!50001 DROP VIEW IF EXISTS `usersactivity_till_now`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE VIEW `usersactivity_till_now` AS SELECT
1 AS `userid`,
1 AS `COUNT( userid )`*/;
SET character_set_client = @saved_cs_client;
--
-- Final view structure for view `usersactivity_till_now`
--
/*!50001 DROP VIEW IF EXISTS `usersactivity_till_now`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8mb4 */;
/*!50001 SET character_set_results = utf8mb4 */;
/*!50001 SET collation_connection = utf8mb4_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `usersactivity_till_now` AS select `user_activities`.`userid` AS `userid`,count(`user_activities`.`userid`) AS `COUNT( userid )` from `user_activities` group by `user_activities`.`userid` order by count(`user_activities`.`userid`) desc */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2021-12-23 16:51:00