/*!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 */; DROP TABLE IF EXISTS `3ds_handling`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `3ds_handling` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `token` varchar(128) DEFAULT NULL, `transaction_type` varchar(20) DEFAULT NULL, `request_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`request_data`)), `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `achivment_levels`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `achivment_levels` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `admin_backend_keys`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `admin_backend_keys` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `api_key` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `backup_wallet`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `backup_wallet` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `card_holder` varchar(80) DEFAULT NULL, `card_type_id` tinyint(1) DEFAULT NULL COMMENT '1 - visa\n2 - master\n3 - maestro', `masked_pan` varchar(45) DEFAULT NULL, `expiration_month` int(11) DEFAULT NULL, `expiration_year` int(11) DEFAULT NULL, `pan_token` varchar(80) DEFAULT NULL, `transaction_id` int(11) DEFAULT NULL, `is_favorite` tinyint(1) DEFAULT 0, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `bb_devices`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bb_devices` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `number` varchar(45) DEFAULT NULL, `imei` varchar(45) DEFAULT NULL, `active` tinyint(1) DEFAULT 1, `created_at` timestamp NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `bb_rental`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bb_rental` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_bb_device` bigint(20) unsigned DEFAULT NULL, `id_bb_sim_card` bigint(20) unsigned DEFAULT NULL, `id_user` bigint(20) unsigned DEFAULT NULL, `id_vehicle` bigint(20) DEFAULT NULL, `debit_date` date DEFAULT NULL, `return_date` date DEFAULT NULL, `active` tinyint(1) DEFAULT 1, `created_at` timestamp NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `bb_sim_cards`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bb_sim_cards` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `number` varchar(45) DEFAULT NULL, `imei` varchar(45) DEFAULT NULL, `active` tinyint(1) DEFAULT 1, `created_at` timestamp NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `black_box_request_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `black_box_request_status` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_vehicle` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_black_box_subscription_plan` int(11) DEFAULT NULL, `status` tinyint(1) DEFAULT NULL COMMENT '1 - poslat je zahtev za black box\n2 - postoji black box za vozilo', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `black_box_subscription_plan_options`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `black_box_subscription_plan_options` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_black_box_subscription_plan` int(11) DEFAULT NULL, `option` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `black_box_subscription_plans`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `black_box_subscription_plans` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `description` varchar(45) DEFAULT NULL, `price` varchar(45) DEFAULT NULL, `for_period` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `cancellation_terms`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cancellation_terms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `chat_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `chat_status` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_chatter` int(11) DEFAULT NULL COMMENT 'id_user ili id_owner', `user_mode` tinyint(1) DEFAULT 0, `archived` tinyint(1) DEFAULT 0 COMMENT '0 ili 1', `is_star_chat` tinyint(1) DEFAULT 0, `is_blocked_chat` tinyint(1) DEFAULT 0, `id_last_active_chat_message` int(11) DEFAULT 0, `id_last_seen_chat_message` int(11) DEFAULT 0, `chat_last_time_deleted` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, `recoverable` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `chats`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `chats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_sender` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `message` varchar(200) DEFAULT NULL, `time` timestamp NULL DEFAULT NULL, `seen` tinyint(1) DEFAULT 0, `seen_driver` tinyint(1) DEFAULT 0, `seen_owner` tinyint(1) DEFAULT 0, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `cities`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cities` ( `id` int(11) NOT NULL AUTO_INCREMENT, `city` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, `region` tinyint(1) DEFAULT NULL COMMENT '1 - srbija\n2 - crna gora', `tax` varchar(45) DEFAULT NULL, `licence_plate_city` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `companies`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `companies` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `company_name` varchar(255) DEFAULT NULL, `company_address` varchar(255) DEFAULT NULL, `registration_number` varchar(45) DEFAULT NULL, `is_in_tax` tinyint(1) DEFAULT NULL, `tax_id` varchar(45) DEFAULT NULL, `is_rent_a_car` tinyint(1) DEFAULT NULL, `pdf_name` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `company_insurances_packages`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `company_insurances_packages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_package_name` int(11) DEFAULT NULL, `id_company` int(11) DEFAULT NULL, `id_package_group` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `contact_form`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contact_form` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fullname` varchar(255) DEFAULT NULL, `phone_number` varchar(45) DEFAULT NULL, `vehicle` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `contact_support`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contact_support` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fullname` varchar(255) DEFAULT NULL, `email_address` varchar(45) DEFAULT NULL, `message_body` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `country_calling_codes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `country_calling_codes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `country` varchar(80) DEFAULT NULL, `code` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `country_codes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `country_codes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `country` varchar(50) DEFAULT NULL, `code` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `credits`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `credits` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `value` varchar(45) DEFAULT NULL, `assigned_date` timestamp NULL DEFAULT NULL, `expiry_date` timestamp NULL DEFAULT NULL, `used` tinyint(1) DEFAULT 0, `expired` tinyint(1) DEFAULT 0, `created_user_id` int(11) DEFAULT NULL, `updated_user_id` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `custom_vehicle_locations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `custom_vehicle_locations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation_request` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `id_notification` int(11) DEFAULT NULL COMMENT 'zbog brisanja notifikacije kada se odgovori na zahtev', `id_vehicle` int(11) DEFAULT NULL, `start_city` varchar(255) DEFAULT NULL, `start_address` varchar(255) DEFAULT NULL, `start_latitude` varchar(45) DEFAULT NULL, `start_longitude` varchar(45) DEFAULT NULL, `start_price` varchar(45) DEFAULT NULL, `end_city` varchar(255) DEFAULT NULL, `end_address` varchar(255) DEFAULT NULL, `end_latitude` varchar(45) DEFAULT NULL, `end_longitude` varchar(45) DEFAULT NULL, `end_price` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `custom_vehicle_locations_requests`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `custom_vehicle_locations_requests` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation_request` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `id_notification` int(11) DEFAULT NULL COMMENT 'zbog brisanja notifikacije kada se odgovori na zahtev', `id_vehicle` int(11) DEFAULT NULL, `start_city` varchar(255) DEFAULT NULL, `start_address` varchar(255) DEFAULT NULL, `start_latitude` varchar(45) DEFAULT NULL, `start_longitude` varchar(45) DEFAULT NULL, `start_price` varchar(45) DEFAULT NULL, `end_city` varchar(255) DEFAULT NULL, `end_address` varchar(255) DEFAULT NULL, `end_latitude` varchar(45) DEFAULT NULL, `end_longitude` varchar(45) DEFAULT NULL, `end_price` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `daily_insurance_prices`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `daily_insurance_prices` ( `id` int(11) NOT NULL AUTO_INCREMENT, `year_lower_limit` varchar(45) DEFAULT NULL, `year_upper_limit` varchar(45) DEFAULT NULL, `engine_power_kw_lower_limit` varchar(45) DEFAULT NULL, `engine_power_kw_upper_limit` varchar(45) DEFAULT NULL, `insurance_limit` varchar(45) DEFAULT NULL, `daily_cost` varchar(45) DEFAULT NULL, `real_id` int(11) DEFAULT NULL COMMENT 'Pravi id paketa osiguranja (od Lovcena)', `packet_group` tinyint(1) DEFAULT NULL COMMENT 'Grupa paketa osiguranja za rent a car agencije:\n1 - basic \n2 - advanced\n3 - premium\n', `id_company` int(11) DEFAULT NULL COMMENT 'Odnosi se iskljucivo na rent a car agencije koje imaju svoje osiguranje', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `damage_deposit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `damage_deposit` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `delete_account_reason_lists`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `delete_account_reason_lists` ( `id` int(11) NOT NULL AUTO_INCREMENT, `reason` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `deleted_accounts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `deleted_accounts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_delete_account_reason` int(11) DEFAULT NULL, `id_user` varchar(45) DEFAULT NULL, `comment` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `document_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `document_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `document` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `equipment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `equipment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_vehicle_type` int(11) DEFAULT NULL COMMENT '1 - automobil\n2 - motor', `equipment` varchar(45) DEFAULT NULL, `equipment_rule_denied` varchar(45) DEFAULT NULL, `type` varchar(45) DEFAULT NULL COMMENT 'freeEquipment\nnonFreeEquipment\nvehicleRules', `icon_path` varchar(80) DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `failed_jobs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `failed_jobs` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `uuid` varchar(255) NOT NULL, `connection` text NOT NULL, `queue` text NOT NULL, `payload` longtext NOT NULL, `exception` longtext NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `faq`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `faq` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(80) DEFAULT NULL, `text` mediumtext DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `fees`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `fees` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` mediumtext DEFAULT NULL, `text` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `firebase_tokens`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `firebase_tokens` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `token` varchar(300) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `how_to_become`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `how_to_become` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_type` tinyint(1) DEFAULT NULL COMMENT '1 vozac\n2 vlasnik', `section_title` tinyint(1) DEFAULT 0, `title` varchar(45) DEFAULT NULL, `text` mediumtext DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `icons`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `icons` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `icon_path` varchar(45) DEFAULT NULL, `category` varchar(45) DEFAULT NULL, `id_destination` int(11) DEFAULT NULL COMMENT 'destinationID koristi samo mobilna app', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `insurance_package_groups`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `insurance_package_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `insurance_package_names`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `insurance_package_names` ( `id` int(11) NOT NULL AUTO_INCREMENT, `package_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `insurance_types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `insurance_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `value` varchar(45) DEFAULT NULL, `order` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `invoices`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `invoices` ( `id` int(11) NOT NULL AUTO_INCREMENT, `is_payment_needed` tinyint(1) DEFAULT 0, `order_number` varchar(80) DEFAULT NULL, `paid` tinyint(1) DEFAULT 0, `order_date` timestamp NULL DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `deposit` varchar(45) DEFAULT NULL, `total_price` varchar(45) DEFAULT NULL, `total_price_plus_deposit` varchar(45) DEFAULT NULL, `reservation_start_time` timestamp NULL DEFAULT NULL, `reservation_end_time` timestamp NULL DEFAULT NULL, `non_free_equipment` mediumtext DEFAULT NULL, `start_city` varchar(255) DEFAULT NULL, `start_address` varchar(255) DEFAULT NULL, `start_latitude` varchar(45) DEFAULT NULL, `start_longitude` varchar(45) DEFAULT NULL, `start_price` varchar(45) DEFAULT NULL, `start_is_start` tinyint(1) DEFAULT NULL, `start_is_end` tinyint(1) DEFAULT NULL, `start_is_custom_location` tinyint(1) DEFAULT NULL, `end_city` varchar(255) DEFAULT NULL, `end_address` varchar(255) DEFAULT NULL, `end_latitude` varchar(45) DEFAULT NULL, `end_longitude` varchar(45) DEFAULT NULL, `end_price` varchar(45) DEFAULT NULL, `end_is_start` tinyint(1) DEFAULT NULL, `end_is_end` tinyint(1) DEFAULT NULL, `end_is_custom_location` tinyint(1) DEFAULT NULL, `id_start_address` int(11) DEFAULT NULL, `id_end_address` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, `one_day_price` varchar(45) DEFAULT NULL, `driving_price` varchar(45) DEFAULT NULL, `pickup_location_price` int(11) DEFAULT 0, `return_location_price` int(11) DEFAULT 0, `subtotal_price` varchar(45) DEFAULT NULL, `idrivy_fee_price` varchar(45) DEFAULT NULL, `idrivy_fee_tax_price` varchar(45) DEFAULT NULL, `income_tax_price` varchar(45) DEFAULT NULL, `tax_surcharge_price` varchar(45) DEFAULT NULL, `insurance_price` varchar(45) DEFAULT NULL, `insurance_tax_price` varchar(45) DEFAULT NULL, `in_total_price` varchar(45) DEFAULT NULL, `vat_price` varchar(45) DEFAULT NULL, `total_with_vat_price` varchar(45) DEFAULT NULL, `deposit_price` varchar(45) DEFAULT NULL, `total_to_pay_price` varchar(45) DEFAULT NULL, `masked_pan` varchar(45) DEFAULT NULL, `card_type_id` tinyint(1) DEFAULT NULL COMMENT '1 - visa\n2 - master\n3 - maestro', `card_token` varchar(64) DEFAULT NULL, `money_reserved` tinyint(1) DEFAULT 0, `ip_address` varchar(50) DEFAULT NULL, `money_reserved_at` varchar(45) DEFAULT NULL, `paid_at` varchar(45) DEFAULT NULL, `voided_at` varchar(45) DEFAULT NULL, `refunded_at` varchar(45) DEFAULT NULL, `refunded_amount` varchar(45) DEFAULT NULL, `use_credit` tinyint(1) DEFAULT 0, `holder_name` varchar(180) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `job_batches`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `job_batches` ( `id` varchar(191) NOT NULL, `name` varchar(191) NOT NULL, `total_jobs` int(11) NOT NULL, `pending_jobs` int(11) NOT NULL, `failed_jobs` int(11) NOT NULL, `failed_job_ids` longtext NOT NULL, `options` mediumtext DEFAULT NULL, `cancelled_at` int(11) DEFAULT NULL, `created_at` int(11) NOT NULL, `finished_at` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `jobs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `jobs` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `queue` varchar(191) NOT NULL, `payload` longtext NOT NULL, `attempts` tinyint(3) unsigned NOT NULL, `reserved_at` int(10) unsigned DEFAULT NULL, `available_at` int(10) unsigned NOT NULL, `created_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `jobs_queue_index` (`queue`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `km_allowance`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `km_allowance` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `lobby_images`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lobby_images` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `position_id` tinyint(1) DEFAULT NULL, `image` varchar(80) DEFAULT NULL, `is_start` tinyint(1) DEFAULT NULL, `is_driver` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `lobby_reported_damage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lobby_reported_damage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_owner` int(11) DEFAULT NULL, `is_start` tinyint(1) DEFAULT NULL, `report_is_active` tinyint(1) DEFAULT 0, `is_damage_accepted` tinyint(1) DEFAULT NULL COMMENT 'Is driver accepted damage', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `lobby_reported_damage_comments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lobby_reported_damage_comments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_lobby_reported_damage` int(11) DEFAULT NULL, `comment` mediumtext DEFAULT NULL, `is_start` tinyint(1) DEFAULT NULL, `is_driver` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `lobby_reported_damage_images`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lobby_reported_damage_images` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_lobby_reported_damage` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `image` varchar(80) DEFAULT NULL, `is_start` tinyint(1) DEFAULT NULL, `is_left` tinyint(1) DEFAULT NULL, `is_driver` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `lobby_reservation_qr_codes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lobby_reservation_qr_codes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `code` varchar(10) DEFAULT NULL, `code_expire_date` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `lobby_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lobby_status` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_driver` int(11) DEFAULT NULL, `id_owner` int(11) DEFAULT NULL, `use_deposit` int(11) DEFAULT NULL, `damage_amount` int(11) DEFAULT NULL, `is_owner_last_action` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `migrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `migrations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(255) NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `newsletter`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `newsletter` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(45) DEFAULT NULL, `profile_type` tinyint(1) DEFAULT NULL COMMENT '1 - vozac\n2 - vlasnik\n3 - izabrano je vozac i vlasnik', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `notification_categories`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notification_categories` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(45) DEFAULT NULL, `color` varchar(45) DEFAULT NULL, `selection_color_light` varchar(45) DEFAULT NULL, `selection_color_dark` varchar(45) DEFAULT NULL, `empty_text` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `notifications`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notifications` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `notification_type` int(11) DEFAULT NULL COMMENT '1 - readOnly\n2 - profileAccepted\n3 - profileRejected\n4 - vehicleAccepted\n5 - vehicleRejected\n6 - reservationStatusChanged\n7 - request\n8 - rateVehicle\n9 - rateDriver\n10 - review\n11 - achivement\n12 - driverRequest\n13 - driverReservationChanged', `notification_type_new` int(11) DEFAULT NULL, `body` varchar(255) DEFAULT NULL, `title` varchar(45) DEFAULT NULL, `image_url` varchar(255) DEFAULT NULL, `date` timestamp NULL DEFAULT NULL, `id_owner_or_driver` int(11) DEFAULT NULL, `id_reservation_request` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `reservation_status` int(11) DEFAULT NULL, `id_recipient` int(11) DEFAULT NULL, `id_review` int(11) DEFAULT NULL, `driver_id` int(11) DEFAULT NULL, `achivment_level` varchar(45) DEFAULT NULL, `seen` tinyint(1) DEFAULT 0, `user_mode` tinyint(1) DEFAULT 0, `id_notification_categorie` int(11) DEFAULT NULL, `button_title` varchar(45) DEFAULT NULL, `destination_id` int(11) DEFAULT NULL COMMENT ' 1. Personal ID ekran\n 2. Selfi ekran\n 3. Vozacka dozvola ekran\n 4. Kreiranje vozila ekran (tj. Saobracajna)\n 5. Ekran vozila\n 6. Zahtev za rezervaciju ekran\n 7. Zahtev za izmenu rezervacije ekran\n 8. Zahtev za dodavanje vozaca ekran\n 9. Detalji rezervacije\n 10. Detalji rezervacije za dodatnog vozaca\n 11. Ocenjivanje', `destination_int` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, `recoverable` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `oauth_access_tokens`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `oauth_access_tokens` ( `id` varchar(100) NOT NULL, `user_id` bigint(20) unsigned DEFAULT NULL, `client_id` bigint(20) unsigned NOT NULL, `name` varchar(255) DEFAULT NULL, `scopes` text DEFAULT NULL, `revoked` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `expires_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `oauth_access_tokens_user_id_index` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `oauth_auth_codes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `oauth_auth_codes` ( `id` varchar(100) NOT NULL, `user_id` bigint(20) unsigned NOT NULL, `client_id` bigint(20) unsigned NOT NULL, `scopes` text DEFAULT NULL, `revoked` tinyint(1) NOT NULL, `expires_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `oauth_auth_codes_user_id_index` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `oauth_clients`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `oauth_clients` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned DEFAULT NULL, `name` varchar(255) NOT NULL, `secret` varchar(100) DEFAULT NULL, `provider` varchar(255) DEFAULT NULL, `redirect` text NOT NULL, `personal_access_client` tinyint(1) NOT NULL, `password_client` tinyint(1) NOT NULL, `revoked` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `oauth_clients_user_id_index` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `oauth_personal_access_clients`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `oauth_personal_access_clients` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `client_id` bigint(20) unsigned NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `oauth_refresh_tokens`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `oauth_refresh_tokens` ( `id` varchar(100) NOT NULL, `access_token_id` varchar(100) NOT NULL, `revoked` tinyint(1) NOT NULL, `expires_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `owner_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `owner_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `min_age` int(2) DEFAULT NULL, `max_age` int(2) DEFAULT NULL, `working_time_from` timestamp NULL DEFAULT NULL, `working_time_to` timestamp NULL DEFAULT NULL, `deposit_age_group_one` varchar(12) DEFAULT NULL, `deposit_age_group_two` varchar(12) DEFAULT NULL, `deposit_age_group_three` varchar(12) DEFAULT NULL, `deposit_factor_group_one` double DEFAULT NULL, `deposit_factor_group_two` double DEFAULT NULL, `deposit_factor_group_three` double DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `password_resets`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `password_resets` ( `email` varchar(255) NOT NULL, `token` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `payment_history`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `payment_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_transaction` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `order_number` varchar(45) DEFAULT NULL, `amount` varchar(45) DEFAULT NULL, `masked_pan` varchar(45) DEFAULT NULL, `token` varchar(255) DEFAULT NULL, `currency` varchar(45) DEFAULT NULL, `outgoing_amount` varchar(45) DEFAULT NULL, `outgoing_currency` varchar(45) DEFAULT NULL, `order_info` varchar(45) DEFAULT NULL, `transaction_type` varchar(45) DEFAULT NULL, `status` varchar(45) DEFAULT NULL, `created_at` varchar(45) DEFAULT NULL COMMENT 'to je timestamp sa timezonom', `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `payment_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `payment_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(45) DEFAULT NULL, `text` mediumtext DEFAULT NULL, `order` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `payment_rules`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `payment_rules` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `text` mediumtext DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `production_year`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `production_year` ( `id` int(11) NOT NULL AUTO_INCREMENT, `year` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `products`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `products` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `description` mediumtext DEFAULT NULL, `image` varchar(45) DEFAULT NULL, `price` varchar(45) DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `rating_options`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `rating_options` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_review_type` varchar(45) DEFAULT NULL, `title` varchar(80) DEFAULT NULL, `value` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `referal_code_text`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `referal_code_text` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(80) DEFAULT NULL, `text` mediumtext DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `rent_a_car_insurances`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `rent_a_car_insurances` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_vehicle` varchar(45) DEFAULT NULL, `one_day_price` varchar(45) DEFAULT NULL, `damage_participation` varchar(45) DEFAULT NULL, `id_package_group` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, `deposit` double DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `report_reason_lists`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `report_reason_lists` ( `id` int(11) NOT NULL AUTO_INCREMENT, `reason` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_additional_drivers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_additional_drivers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_request` int(11) DEFAULT NULL, `id_additional_driver` int(11) DEFAULT NULL, `date` timestamp NULL DEFAULT NULL, `status` int(11) DEFAULT NULL COMMENT '1 - poslat vozacu\n2 - poslat domacinu\n3 - odbijen\n4 - prihvacen', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_cancel_reason_lists`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_cancel_reason_lists` ( `id` int(11) NOT NULL AUTO_INCREMENT, `reason` varchar(80) DEFAULT NULL, `type` tinyint(1) DEFAULT NULL COMMENT '1 - vozac\n2 - host\n0 - oba', `number` tinyint(2) DEFAULT NULL, `is_payment_needed` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_comments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_comments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `comment_start` varchar(80) DEFAULT NULL, `comment_end` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_damage_images`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_damage_images` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `image` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_damage_price`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_damage_price` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `price` varchar(45) DEFAULT NULL, `comment` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_driver_requests`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_driver_requests` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_additional_driver` int(11) DEFAULT NULL, `date` timestamp NULL DEFAULT NULL, `status` tinyint(1) DEFAULT 1 COMMENT '1 - poslat domacinu\n2 - odbijen\n3 - prihvacen', `request_status_id` tinyint(1) DEFAULT 1 COMMENT '1 - unanswered\n2 - cancelled\n3 - expired\n4 - rejected\n5 - accepted', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_images`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_images` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `image` varchar(80) DEFAULT NULL, `is_start` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_request_extra_equipment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_request_extra_equipment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_request` int(11) DEFAULT NULL, `id_equipment` int(11) DEFAULT NULL, `price` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_requests`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_requests` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_driver` int(11) DEFAULT NULL, `id_owner` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `region` varchar(45) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `request_type` int(11) DEFAULT NULL COMMENT '1 - create reservation\n2 - edit reservation\n3 - my location', `request_status_id` tinyint(1) DEFAULT 1 COMMENT '1 - unanswered\n2 - cancelled\n3 - expired\n4 - rejected\n5 - accepted', `vehicle_name` varchar(45) DEFAULT NULL, `reservation_start_time` timestamp NULL DEFAULT NULL, `reservation_end_time` timestamp NULL DEFAULT NULL, `start_address` varchar(255) DEFAULT NULL, `id_start_address` int(11) DEFAULT NULL, `end_address` varchar(255) DEFAULT NULL, `id_end_address` int(11) DEFAULT NULL, `start_custom_location` tinyint(1) DEFAULT NULL, `end_custom_location` tinyint(1) DEFAULT NULL, `pickup_location_price` int(11) DEFAULT 0, `return_location_price` int(11) DEFAULT 0, `total_price` varchar(45) DEFAULT NULL, `is_accepted` tinyint(1) DEFAULT NULL, `answered` tinyint(1) DEFAULT 0, `price` varchar(45) DEFAULT NULL, `deposit` varchar(45) DEFAULT NULL, `reason` varchar(255) DEFAULT NULL, `reason_comment` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_shortening_reason_lists`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_shortening_reason_lists` ( `id` int(11) NOT NULL AUTO_INCREMENT, `reason` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_status_types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_status_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(45) DEFAULT NULL, `description` varchar(45) DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservation_videos`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation_videos` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `is_start` tinyint(1) DEFAULT NULL, `video` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `reservations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_owner` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `is_reservation_edited` tinyint(1) DEFAULT 0, `region` varchar(45) DEFAULT NULL, `id_reservation_status` int(11) DEFAULT 1 COMMENT '1 - onWait (Na čekanju)\n2 - incoming (Nadolazeća)\n3 - active (Aktivna)\n4 - finished (Završena)\n5 - cancelled (Otkazana)', `review_status` tinyint(1) DEFAULT 1 COMMENT '1 - niko nije ocenio\n2 - vozac je ocenio\n3 - domacin je ocenio\n4 - svi su ocenili', `price` varchar(45) DEFAULT NULL, `deposit` varchar(45) DEFAULT NULL, `allowed_kilometers` double DEFAULT NULL, `excess_kilometers_fee` double DEFAULT NULL, `reservation_start_time` timestamp NULL DEFAULT NULL, `reservation_end_time` timestamp NULL DEFAULT NULL, `reservation_cancel_time` timestamp NULL DEFAULT NULL, `start_address` varchar(255) DEFAULT NULL, `end_address` varchar(255) DEFAULT NULL, `start_custom_location` tinyint(1) DEFAULT NULL, `end_custom_location` tinyint(1) DEFAULT NULL, `id_start_address` int(11) DEFAULT NULL, `id_end_address` int(11) DEFAULT NULL, `driver_started_driving` tinyint(1) DEFAULT 0, `owner_started_driving` tinyint(1) DEFAULT 0, `driver_finished_driving` tinyint(1) DEFAULT 0, `owner_finished_driving` tinyint(1) DEFAULT 0, `id_selection_status` int(11) DEFAULT NULL COMMENT '1 selected \n2 disabled\n3 discount', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, `one_day_price` varchar(45) DEFAULT NULL, `idrivy_partner_earning_coeficient` varchar(45) DEFAULT NULL, `driving_price` varchar(45) DEFAULT NULL, `pickup_location_price` varchar(45) DEFAULT '0', `return_location_price` varchar(45) DEFAULT '0', `subtotal_price` varchar(45) DEFAULT NULL, `idrivy_fee_price` varchar(45) DEFAULT NULL, `idrivy_fee_tax_price` varchar(45) DEFAULT NULL, `income_tax_price` varchar(45) DEFAULT NULL, `tax_surcharge_price` varchar(45) DEFAULT NULL, `insurance_price` varchar(45) DEFAULT NULL, `insurance_tax_price` varchar(45) DEFAULT NULL, `in_total_price` varchar(45) DEFAULT NULL, `vat_price` varchar(45) DEFAULT NULL, `total_with_vat_price` varchar(45) DEFAULT NULL, `deposit_price` varchar(45) DEFAULT NULL, `total_to_pay_price` varchar(45) DEFAULT NULL, `paid` tinyint(1) DEFAULT 0, `id_insurance` int(11) DEFAULT NULL, `id_insurance_type` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `system_options`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `system_options` ( `id` int(11) NOT NULL AUTO_INCREMENT, `pdv` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `telescope_entries`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `telescope_entries` ( `sequence` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `uuid` char(36) NOT NULL, `batch_id` char(36) NOT NULL, `family_hash` varchar(191) DEFAULT NULL, `should_display_on_index` tinyint(1) NOT NULL DEFAULT 1, `type` varchar(20) NOT NULL, `content` longtext NOT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`sequence`), UNIQUE KEY `telescope_entries_uuid_unique` (`uuid`), KEY `telescope_entries_batch_id_index` (`batch_id`), KEY `telescope_entries_family_hash_index` (`family_hash`), KEY `telescope_entries_created_at_index` (`created_at`), KEY `telescope_entries_type_should_display_on_index_index` (`type`,`should_display_on_index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `telescope_entries_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `telescope_entries_tags` ( `entry_uuid` char(36) NOT NULL, `tag` varchar(191) NOT NULL, KEY `telescope_entries_tags_entry_uuid_tag_index` (`entry_uuid`,`tag`), KEY `telescope_entries_tags_tag_index` (`tag`), CONSTRAINT `telescope_entries_tags_entry_uuid_foreign` FOREIGN KEY (`entry_uuid`) REFERENCES `telescope_entries` (`uuid`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `telescope_monitoring`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `telescope_monitoring` ( `tag` varchar(191) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `temp_invoices`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `temp_invoices` ( `id` int(11) NOT NULL AUTO_INCREMENT, `is_payment_needed` tinyint(1) DEFAULT 0, `order_number` varchar(80) DEFAULT NULL, `paid` tinyint(1) DEFAULT 0, `order_date` timestamp NULL DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `deposit` varchar(45) DEFAULT NULL, `total_price` varchar(45) DEFAULT NULL, `total_price_plus_deposit` varchar(45) DEFAULT NULL, `reservation_start_time` timestamp NULL DEFAULT NULL, `reservation_end_time` timestamp NULL DEFAULT NULL, `non_free_equipment` mediumtext DEFAULT NULL, `start_city` varchar(255) DEFAULT NULL, `start_address` varchar(255) DEFAULT NULL, `start_latitude` varchar(45) DEFAULT NULL, `start_longitude` varchar(45) DEFAULT NULL, `start_price` varchar(45) DEFAULT NULL, `start_is_start` tinyint(1) DEFAULT NULL, `start_is_end` tinyint(1) DEFAULT NULL, `start_is_custom_location` tinyint(1) DEFAULT NULL, `end_city` varchar(255) DEFAULT NULL, `end_address` varchar(255) DEFAULT NULL, `end_latitude` varchar(45) DEFAULT NULL, `end_longitude` varchar(45) DEFAULT NULL, `end_price` varchar(45) DEFAULT NULL, `end_is_start` tinyint(1) DEFAULT NULL, `end_is_end` tinyint(1) DEFAULT NULL, `end_is_custom_location` tinyint(1) DEFAULT NULL, `id_start_address` int(11) DEFAULT NULL, `id_end_address` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, `one_day_price` varchar(45) DEFAULT NULL, `driving_price` varchar(45) DEFAULT NULL, `pickup_location_price` int(11) DEFAULT 0, `return_location_price` int(11) DEFAULT 0, `subtotal_price` varchar(45) DEFAULT NULL, `idrivy_fee_price` varchar(45) DEFAULT NULL, `idrivy_fee_tax_price` varchar(45) DEFAULT NULL, `income_tax_price` varchar(45) DEFAULT NULL, `tax_surcharge_price` varchar(45) DEFAULT NULL, `insurance_price` varchar(45) DEFAULT NULL, `insurance_tax_price` varchar(45) DEFAULT NULL, `in_total_price` varchar(45) DEFAULT NULL, `vat_price` varchar(45) DEFAULT NULL, `total_with_vat_price` varchar(45) DEFAULT NULL, `deposit_price` varchar(45) DEFAULT NULL, `total_to_pay_price` varchar(45) DEFAULT NULL, `masked_pan` varchar(45) DEFAULT NULL, `card_type_id` tinyint(1) DEFAULT NULL COMMENT '1 - visa\n2 - master\n3 - maestro', `card_token` varchar(64) DEFAULT NULL, `money_reserved` tinyint(1) DEFAULT 0, `ip_address` varchar(50) DEFAULT NULL, `refunded_amount` varchar(45) DEFAULT NULL, `use_credit` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `terms`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `terms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(80) DEFAULT NULL, `text` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, `region` tinyint(1) DEFAULT NULL COMMENT '1 - srbija\n2 - crna gora', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ticket_handling_errors`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ticket_handling_errors` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_ticket` int(11) DEFAULT NULL, `ticket_type` int(11) DEFAULT NULL COMMENT '1 - vozac\n2 - host\n3 - vozilo', `reason_text` text DEFAULT NULL, `id_reason_category` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `tips`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tips` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(45) DEFAULT NULL, `body` varchar(255) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `type` tinyint(1) DEFAULT NULL COMMENT '1 - host\n2 - driver', `image` varchar(80) DEFAULT NULL, `video` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `unfinished_reservations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `unfinished_reservations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `data` mediumtext DEFAULT NULL, `status` tinyint(1) DEFAULT 0, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `used_credits`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `used_credits` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_reservation` int(11) DEFAULT NULL, `id_credit` int(11) DEFAULT NULL, `used_credit` varchar(10) DEFAULT NULL, `used_date` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `user_devices`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_devices` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_device` varchar(45) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `app_name` varchar(45) DEFAULT NULL, `device_name` varchar(45) DEFAULT NULL, `last_login_date` timestamp NULL DEFAULT NULL, `city` varchar(45) DEFAULT NULL, `login_token` text DEFAULT NULL, `access_token` text DEFAULT NULL, `firebase_token` text DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `user_documents_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_documents_data` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_document_type` varchar(80) DEFAULT NULL COMMENT '1 - Lična karta\n2 - Vozačka dozvola\n3 - Saobraćajna dozvola\n4 - Selfi\n5 - Banka vozač\n6 - Banka domaćin\n7 - pasos', `document_status` tinyint(1) DEFAULT 1 COMMENT '1 - sent\n2 - expiringSoon\n3 - nonValid\n4 - valid', `document_reject_text` varchar(300) DEFAULT NULL, `front_image` varchar(80) DEFAULT NULL, `back_image` varchar(80) DEFAULT NULL, `expiration_date` datetime DEFAULT NULL, `expiration_year` timestamp NULL DEFAULT NULL, `expiration_month` timestamp NULL DEFAULT NULL, `document_number` varchar(45) DEFAULT NULL, `document_issuing_date` timestamp NULL DEFAULT NULL, `is_terms_agreed` tinyint(1) DEFAULT 0, `firstname` varchar(45) DEFAULT NULL, `lastname` varchar(45) DEFAULT NULL, `recipient_name` varchar(80) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `bank_account_number` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `user_driver_codes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_driver_codes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `code` varchar(10) DEFAULT NULL, `code_expire_date` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `user_images`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_images` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `image` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), KEY `fk_users_idx` (`id_user`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `user_reports`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_reports` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_report_reason` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_reported_user` int(11) DEFAULT NULL COMMENT 'id korisnika ili rezervaciju u zavisnosti od tipa prijave\n', `id_reservation` int(11) DEFAULT NULL COMMENT 'id korisnika ili rezervaciju u zavisnosti od tipa prijave\n', `comment` varchar(255) DEFAULT NULL, `report_status` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `user_reservation_canceled_reason`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_reservation_canceled_reason` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `id_reservation_cancel_reason` int(11) DEFAULT NULL, `reservation_cancel_time` timestamp NULL DEFAULT NULL, `comment` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `user_reservation_request_dates`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_reservation_request_dates` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `selected_dates` mediumtext DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `phone_number` varchar(45) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `user_mode` tinyint(1) DEFAULT 0, `driver_verification_status` int(1) DEFAULT 1 COMMENT '1 - none\n2 - sent\n3 - expiringSoon\n4 - nonVerified\n5 - verified', `host_verification_status` int(1) DEFAULT 1 COMMENT '1 - none\n2 - sent\n3 - expiringSoon\n4 - nonVerified\n5 - verified', `username` varchar(255) DEFAULT NULL, `firstname` varchar(80) DEFAULT NULL, `lastname` varchar(80) DEFAULT NULL, `jmbg` varchar(45) DEFAULT NULL, `registration_confirmed` int(1) DEFAULT 0, `email_verified` int(1) DEFAULT 0, `phone_verified` int(1) DEFAULT 0, `password` varchar(255) DEFAULT NULL, `company_id` varchar(1) DEFAULT NULL, `temp_company_user_id` varchar(255) DEFAULT NULL, `apple_user_id` varchar(255) DEFAULT NULL, `google_user_id` varchar(255) DEFAULT NULL, `facebook_user_id` varchar(255) DEFAULT NULL, `languages` varchar(80) DEFAULT NULL, `locale` varchar(4) DEFAULT NULL, `remember_token` varchar(100) DEFAULT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `phone_verified_at` timestamp NULL DEFAULT NULL, `pin_sms` varchar(10) DEFAULT NULL, `pin_email` varchar(10) DEFAULT NULL, `pin_delete_account` varchar(10) DEFAULT NULL, `new_phone_number` varchar(45) DEFAULT NULL, `new_email` varchar(255) DEFAULT NULL, `login_count` int(11) DEFAULT 0, `term_privacy` tinyint(1) DEFAULT 0, `term_use` tinyint(1) DEFAULT 0, `term_rules_host` tinyint(1) DEFAULT 0, `term_rules_driver` tinyint(1) DEFAULT 0, `date_joined` timestamp NULL DEFAULT NULL, `verified_owner` int(1) DEFAULT 0, `verified_driver` int(1) DEFAULT 0, `driver_id` varchar(45) DEFAULT NULL, `banned` tinyint(1) DEFAULT 0, `banned_date` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `users_favorite_vehicles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users_favorite_vehicles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `is_favorite` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_air_conditioning`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_air_conditioning` ( `id` int(11) NOT NULL AUTO_INCREMENT, `value` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_body_types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_body_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `body_type` varchar(45) DEFAULT NULL, `id_vehicle_type` int(11) DEFAULT NULL, `icon` varchar(45) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), KEY `fk_vehicle_type_idx` (`id_vehicle_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_brands`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_brands` ( `id` int(11) NOT NULL AUTO_INCREMENT, `brand` varchar(80) DEFAULT NULL, `id_vehicle_type` int(11) DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), KEY `fk_vehicle_type_idx` (`id_vehicle_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_cancellation_terms`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_cancellation_terms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_cancellation_term` int(11) DEFAULT NULL, `value` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_user_cancel_term_idx` (`id_user`), KEY `fk_vehicle_vehicle_idx` (`id_vehicle`), KEY `fk_cancelation_term_idx` (`id_cancellation_term`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_colors`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_colors` ( `id` int(11) NOT NULL AUTO_INCREMENT, `value` varchar(45) DEFAULT NULL, `hex_light` varchar(45) DEFAULT NULL, `hex_dark` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_creation_categories`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_creation_categories` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category_name` varchar(45) DEFAULT NULL, `category_type` varchar(45) DEFAULT NULL COMMENT '1 - dropdown\n2- text input', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_engine_power_types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_engine_power_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `engine_power` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_enterier_color`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_enterier_color` ( `id` int(11) NOT NULL AUTO_INCREMENT, `value` varchar(45) DEFAULT NULL, `hex_light` varchar(45) DEFAULT NULL, `hex_dark` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_enterier_material`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_enterier_material` ( `id` int(11) NOT NULL AUTO_INCREMENT, `value` varchar(45) DEFAULT NULL, `order` tinyint(1) DEFAULT NULL COMMENT 'Ubacice se u nekom trenutku', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_equipment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_equipment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_equipment` int(11) DEFAULT NULL, `type` varchar(45) DEFAULT NULL COMMENT 'free\nnonfree\nrules', `price` varchar(80) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_fuel_types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_fuel_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fuel_type` varchar(45) DEFAULT NULL, `id_vehicle_type` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_images`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_images` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_vehicle` int(11) DEFAULT NULL, `image` varchar(80) DEFAULT NULL, `grid_index` tinyint(2) DEFAULT 0, `main_image` tinyint(1) DEFAULT 0, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, `deleted` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `fk_vehicle_image_idx` (`id_vehicle`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_insurance`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_insurance` ( `id` int(11) NOT NULL AUTO_INCREMENT, `insurance_type` tinyint(1) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `daily_insured` tinyint(1) DEFAULT 0, `insurance_company_name` varchar(255) DEFAULT NULL, `premium_amount` varchar(45) DEFAULT NULL, `price` varchar(45) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `insurance_link` varchar(255) DEFAULT NULL, `document` varchar(255) DEFAULT NULL, `is_terms_agreed` tinyint(1) DEFAULT 0, `is_aggreement_accepted` tinyint(1) DEFAULT 0, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_km_allowance`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_km_allowance` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_km_allowance` int(11) DEFAULT NULL, `value` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_user_idx` (`id_user`), KEY `fk_vehicle_km_allow_idx` (`id_vehicle`), KEY `fk_km_allowance_idx` (`id_km_allowance`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_locations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_locations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_vehicle` int(11) DEFAULT NULL, `region` varchar(45) DEFAULT NULL, `city` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `price` varchar(45) DEFAULT NULL, `is_start` tinyint(1) DEFAULT NULL, `is_end` tinyint(1) DEFAULT NULL, `latitude` varchar(45) DEFAULT NULL, `longitude` varchar(45) DEFAULT NULL, `primary_location` tinyint(1) DEFAULT NULL, `custom_location` tinyint(1) DEFAULT 0, `location_number` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), KEY `fk_vehicle_location_vehicle_idx` (`id_vehicle`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_models`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_models` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_vehicle_brand` int(11) DEFAULT NULL, `model` varchar(45) DEFAULT NULL, `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), KEY `fk_vehicle_model_brand_idx` (`id_vehicle_brand`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_number_of_doors`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_number_of_doors` ( `id` int(11) NOT NULL AUTO_INCREMENT, `number` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_number_of_seats`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_number_of_seats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `number_of_seats` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_ratings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_ratings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `rating_type` int(1) DEFAULT NULL COMMENT '1 - vehicle\n2 - driver', `id_vehicle` int(11) DEFAULT NULL, `id_reservation` int(11) DEFAULT NULL, `id_user` int(11) DEFAULT NULL, `id_reviewer` int(11) DEFAULT NULL, `quality` int(1) DEFAULT NULL, `comfort` int(1) DEFAULT NULL, `cleanliness` int(1) DEFAULT NULL, `comunication` int(1) DEFAULT NULL, `owner` int(1) DEFAULT NULL, `comment` varchar(255) DEFAULT NULL, `driver` int(1) DEFAULT NULL, `returned_vehicle` int(1) DEFAULT NULL, `date` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, `comunication_with_driver` int(1) DEFAULT NULL, `returned_vehicle_cleanliness` int(1) DEFAULT NULL, `returned_vehicle_condition` int(1) DEFAULT NULL, `comunication_with_host` int(1) DEFAULT NULL, `vehicle_cleanliness` int(1) DEFAULT NULL, `vehicle_quality` int(1) DEFAULT NULL, `additional_equipment` int(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_vehicle_rating_vehicle_idx` (`id_vehicle`), KEY `fk_vehicle_rating_user_idx` (`id_user`), KEY `fk_veh_ratin_user_idx` (`id_user`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_transmission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_transmission` ( `id` int(11) NOT NULL AUTO_INCREMENT, `value` varchar(45) DEFAULT NULL, `id_vehicle_type` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicle_wheel_drive`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicle_wheel_drive` ( `id` int(11) NOT NULL AUTO_INCREMENT, `value` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehicles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehicles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `creation_status` tinyint(1) DEFAULT 1 COMMENT '1 - in creation \n2 - waitng for review\n3 - vehicle denied\n4 - vehicle deleted\n5 - vehicle approved\n6 - hidden\n7 - missingData\n8 - edit in progress', `region` varchar(45) DEFAULT NULL, `insurance_type` tinyint(1) DEFAULT 1 COMMENT '1 - nonInsured\n2 - dailyInsured\n3 - insured\n\nTreba da se doda posebno tabela u nekom trenutku', `id_vehicle_type` int(11) DEFAULT NULL COMMENT '1 - automobil\n2 - motor', `id_vehicle_brand` int(11) DEFAULT NULL, `id_vehicle_model` int(11) DEFAULT NULL, `id_vehicle_body_type` int(11) DEFAULT NULL, `id_vehicle_number_of_doors` int(11) DEFAULT NULL, `id_vehicle_number_of_seats` int(11) DEFAULT NULL, `id_production_year` int(11) DEFAULT NULL, `id_vehicle_fuel_type` int(11) DEFAULT NULL, `id_vehicle_wheel_drive` int(11) DEFAULT NULL, `id_vehicle_transmission` int(11) DEFAULT NULL, `id_vehicle_air_conditioning` int(11) DEFAULT NULL, `id_vehicle_color` int(11) DEFAULT NULL, `id_vehicle_enterier_material` int(11) DEFAULT NULL, `id_vehicle_enterier_color` int(11) DEFAULT NULL, `engine_cubic_size` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `engine_power_hp` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `engine_power_kw` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `engine_consumption` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `vehicle_name` varchar(80) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `description` mediumtext DEFAULT NULL, `license_plate_number` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `vin` varchar(45) DEFAULT NULL, `gross_vehicle_weight` varchar(45) DEFAULT NULL, `sip` varchar(45) DEFAULT NULL, `price` int(11) DEFAULT 0, `deposit` int(11) DEFAULT 0, `minimum_days` int(11) DEFAULT 1, `discount_7_plus_days` int(11) DEFAULT 0, `discount_14_plus_days` int(11) DEFAULT 0, `discount_30_plus_days` int(11) DEFAULT 0, `discount_dates` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `blocked_days` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `blocked_reserved_dates` mediumtext DEFAULT NULL, `allowed_kilometers` double DEFAULT NULL, `excess_kilometers_fee` double DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `vehiclle_damage_deposit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `vehiclle_damage_deposit` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_vehicle` int(11) DEFAULT NULL, `id_damage_deposit` int(11) DEFAULT NULL, `deposit_value` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_vehicle_damage_deposit_user_idx` (`id_user`), KEY `fk_vehicle_damage_deposit_vehicle_idx` (`id_vehicle`), KEY `fk_vehicle_damage_deposit_dmg_idx` (`id_damage_deposit`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `wallet`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `wallet` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `card_holder` varchar(80) DEFAULT NULL, `card_type_id` tinyint(1) DEFAULT NULL COMMENT '1 - visa\n2 - master\n3 - maestro', `masked_pan` varchar(45) DEFAULT NULL, `expiration_month` int(11) DEFAULT NULL, `expiration_year` int(11) DEFAULT NULL, `pan_token` varchar(80) DEFAULT NULL, `transaction_id` int(11) DEFAULT NULL, `is_favorite` tinyint(1) DEFAULT 0, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!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 */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; INSERT INTO `migrations` VALUES (1,'2014_10_12_000000_create_users_table',1); INSERT INTO `migrations` VALUES (2,'2014_10_12_100000_create_password_resets_table',1); INSERT INTO `migrations` VALUES (3,'2016_06_01_000001_create_oauth_auth_codes_table',1); INSERT INTO `migrations` VALUES (4,'2016_06_01_000002_create_oauth_access_tokens_table',1); INSERT INTO `migrations` VALUES (5,'2016_06_01_000003_create_oauth_refresh_tokens_table',1); INSERT INTO `migrations` VALUES (6,'2016_06_01_000004_create_oauth_clients_table',1); INSERT INTO `migrations` VALUES (7,'2016_06_01_000005_create_oauth_personal_access_clients_table',1); INSERT INTO `migrations` VALUES (8,'2019_08_19_000000_create_failed_jobs_table',1); INSERT INTO `migrations` VALUES (9,'0000_00_00_000000_create_websockets_statistics_entries_table',2); INSERT INTO `migrations` VALUES (10,'2018_08_08_100000_create_telescope_entries_table',3);