text: -- phpMyAdmin SQL Dump
  -- version 4.9.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost
  -- Generation Time: Mar 22, 2020 at 08:37 AM
  -- Server version: 10.4.8-MariaDB
  -- PHP Version: 7.3.10
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  START TRANSACTION;
  SET time_zone = "+00:00";
  
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8mb4 */;
  
  --
  -- Database: `property`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `attachments`
  --
  
  CREATE TABLE `attachments` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `property_id` bigint(20) UNSIGNED NOT NULL,
    `file` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `contacts`
  --
  
  CREATE TABLE `contacts` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `user_id` bigint(20) UNSIGNED DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `facts`
  --
  
  CREATE TABLE `facts` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `property_id` bigint(20) UNSIGNED NOT NULL,
    `fact` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `failed_jobs`
  --
  
  CREATE TABLE `failed_jobs` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
    `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `features`
  --
  
  CREATE TABLE `features` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `feature` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `floors`
  --
  
  CREATE TABLE `floors` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `property_id` bigint(20) UNSIGNED NOT NULL,
    `floor_image` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `galleries`
  --
  
  CREATE TABLE `galleries` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `property_id` bigint(20) UNSIGNED NOT NULL,
    `gallery_image` text COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `locations`
  --
  
  CREATE TABLE `locations` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `property_id` bigint(20) UNSIGNED NOT NULL,
    `address` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `longitude` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
    `latitude` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `migrations`
  --
  
  INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
  (1, '2014_10_12_000000_create_users_table', 1),
  (2, '2014_10_12_100000_create_password_resets_table', 1),
  (3, '2019_08_19_000000_create_failed_jobs_table', 1),
  (4, '2020_03_10_154126_create_statuses_table', 1),
  (5, '2020_03_10_154137_create_types_table', 1),
  (6, '2020_03_10_154301_create_features_table', 1),
  (7, '2020_03_10_154310_create_tags_table', 1),
  (8, '2020_03_10_155001_create_properties_table', 1),
  (9, '2020_03_10_155031_create_floors_table', 1),
  (10, '2020_03_10_155056_create_galleries_table', 1),
  (11, '2020_03_10_155114_create_attachments_table', 1),
  (12, '2020_03_10_155131_create_locations_table', 1),
  (13, '2020_03_10_155158_create_transportations_table', 1),
  (14, '2020_03_10_155230_create_neighborhoods_table', 1),
  (15, '2020_03_10_164108_create_facts_table', 1),
  (16, '2020_03_10_164139_create_schools_table', 1),
  (17, '2020_03_19_070757_create_permission_tables', 1),
  (18, '2020_03_21_135258_create_contacts_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `model_has_permissions`
  --
  
  CREATE TABLE `model_has_permissions` (
    `permission_id` bigint(20) UNSIGNED NOT NULL,
    `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `model_id` bigint(20) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `model_has_roles`
  --
  
  CREATE TABLE `model_has_roles` (
    `role_id` bigint(20) UNSIGNED NOT NULL,
    `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `model_id` bigint(20) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `model_has_roles`
  --
  
  INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
  (1, 'App\\User', 1),
  (2, 'App\\User', 3),
  (2, 'App\\User', 4);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `neighborhoods`
  --
  
  CREATE TABLE `neighborhoods` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `property_id` bigint(20) UNSIGNED NOT NULL,
    `transportation_id` bigint(20) UNSIGNED NOT NULL,
    `place` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `duration` int(10) UNSIGNED NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `permissions`
  --
  
  CREATE TABLE `permissions` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `properties`
  --
  
  CREATE TABLE `properties` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `status_id` bigint(20) UNSIGNED NOT NULL,
    `type_id` bigint(20) UNSIGNED NOT NULL,
    `feature_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `tag_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
    `bedroom` int(10) UNSIGNED NOT NULL,
    `bathroom` int(10) UNSIGNED NOT NULL,
    `garage` int(10) UNSIGNED DEFAULT NULL,
    `build_year` int(10) UNSIGNED DEFAULT NULL,
    `land_area` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
    `building_area` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
    `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `keyword` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `price` int(10) UNSIGNED NOT NULL,
    `embed_code` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `property_status` int(10) UNSIGNED NOT NULL DEFAULT 1,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `roles`
  --
  
  CREATE TABLE `roles` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `roles`
  --
  
  INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
  (1, 'admin', 'web', '2020-03-21 08:20:36', '2020-03-21 08:20:36'),
  (2, 'agent', 'web', '2020-03-21 08:20:36', '2020-03-21 08:20:36'),
  (3, 'premium_agent', 'web', '2020-03-21 08:20:36', '2020-03-21 08:20:36'),
  (4, 'user', 'web', '2020-03-21 08:20:36', '2020-03-21 08:20:36');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `role_has_permissions`
  --
  
  CREATE TABLE `role_has_permissions` (
    `permission_id` bigint(20) UNSIGNED NOT NULL,
    `role_id` bigint(20) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `schools`
  --
  
  CREATE TABLE `schools` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `property_id` bigint(20) UNSIGNED NOT NULL,
    `school_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
    `rating` int(10) UNSIGNED NOT NULL,
    `grade` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
    `distance` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `statuses`
  --
  
  CREATE TABLE `statuses` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `status` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tags`
  --
  
  CREATE TABLE `tags` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `tag` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `transportations`
  --
  
  CREATE TABLE `transportations` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `transportation_type` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `types`
  --
  
  CREATE TABLE `types` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `type` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` bigint(20) UNSIGNED NOT NULL,
    `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(70) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email_verified_at` timestamp NULL DEFAULT NULL,
    `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `phone_no` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
    `address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `phone_no`, `address`, `image`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'Admin', 'admin@gmail.com', NULL, '$2y$10$H710qV28hF3L6rF3ma/WM.dqmtOwz7xwaUCOBIbyYDu7pYutBw972', '098765421788', 'MPT Condo, Hlaing, Yangon', NULL, NULL, '2020-03-21 08:53:13', '2020-03-21 08:53:13'),
  (3, 'AgentOne', 'agentone@gmail.com', NULL, '$2y$10$H710qV28hF3L6rF3ma/WM.dqmtOwz7xwaUCOBIbyYDu7pYutBw972', '098765421788', 'Hlaing, Yangon', 'image/profile/5e76368bedc681584805515.jpeg', NULL, '2020-03-21 09:15:15', '2020-03-21 09:15:15'),
  (4, 'AgentTwo', 'agenttwo@gmail.com', NULL, '$2y$10$n2YjcDXIFEnfBNRcOgp79.VSuAziX8lQO4stxV/3mC5ayNNXjxjwq', '098765421877', '12456789', NULL, NULL, '2020-03-21 09:17:57', '2020-03-21 09:17:57');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `attachments`
  --
  ALTER TABLE `attachments`
    ADD PRIMARY KEY (`id`),
    ADD KEY `attachments_property_id_foreign` (`property_id`);
  
  --
  -- Indexes for table `contacts`
  --
  ALTER TABLE `contacts`
    ADD PRIMARY KEY (`id`),
    ADD KEY `contacts_user_id_foreign` (`user_id`);
  
  --
  -- Indexes for table `facts`
  --
  ALTER TABLE `facts`
    ADD PRIMARY KEY (`id`),
    ADD KEY `facts_property_id_foreign` (`property_id`);
  
  --
  -- Indexes for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `features`
  --
  ALTER TABLE `features`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `floors`
  --
  ALTER TABLE `floors`
    ADD PRIMARY KEY (`id`),
    ADD KEY `floors_property_id_foreign` (`property_id`);
  
  --
  -- Indexes for table `galleries`
  --
  ALTER TABLE `galleries`
    ADD PRIMARY KEY (`id`),
    ADD KEY `galleries_property_id_foreign` (`property_id`);
  
  --
  -- Indexes for table `locations`
  --
  ALTER TABLE `locations`
    ADD PRIMARY KEY (`id`),
    ADD KEY `locations_property_id_foreign` (`property_id`);
  
  --
  -- Indexes for table `migrations`
  --
  ALTER TABLE `migrations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `model_has_permissions`
  --
  ALTER TABLE `model_has_permissions`
    ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
    ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);
  
  --
  -- Indexes for table `model_has_roles`
  --
  ALTER TABLE `model_has_roles`
    ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
    ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);
  
  --
  -- Indexes for table `neighborhoods`
  --
  ALTER TABLE `neighborhoods`
    ADD PRIMARY KEY (`id`),
    ADD KEY `neighborhoods_transportation_id_foreign` (`transportation_id`),
    ADD KEY `neighborhoods_property_id_foreign` (`property_id`);
  
  --
  -- Indexes for table `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`);
  
  --
  -- Indexes for table `permissions`
  --
  ALTER TABLE `permissions`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `properties`
  --
  ALTER TABLE `properties`
    ADD PRIMARY KEY (`id`),
    ADD KEY `properties_status_id_foreign` (`status_id`),
    ADD KEY `properties_type_id_foreign` (`type_id`);
  
  --
  -- Indexes for table `roles`
  --
  ALTER TABLE `roles`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `role_has_permissions`
  --
  ALTER TABLE `role_has_permissions`
    ADD PRIMARY KEY (`permission_id`,`role_id`),
    ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);
  
  --
  -- Indexes for table `schools`
  --
  ALTER TABLE `schools`
    ADD PRIMARY KEY (`id`),
    ADD KEY `schools_property_id_foreign` (`property_id`);
  
  --
  -- Indexes for table `statuses`
  --
  ALTER TABLE `statuses`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `tags`
  --
  ALTER TABLE `tags`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `transportations`
  --
  ALTER TABLE `transportations`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `types`
  --
  ALTER TABLE `types`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `attachments`
  --
  ALTER TABLE `attachments`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `contacts`
  --
  ALTER TABLE `contacts`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `facts`
  --
  ALTER TABLE `facts`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `failed_jobs`
  --
  ALTER TABLE `failed_jobs`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `features`
  --
  ALTER TABLE `features`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `floors`
  --
  ALTER TABLE `floors`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `galleries`
  --
  ALTER TABLE `galleries`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `locations`
  --
  ALTER TABLE `locations`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
  
  --
  -- AUTO_INCREMENT for table `neighborhoods`
  --
  ALTER TABLE `neighborhoods`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `permissions`
  --
  ALTER TABLE `permissions`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `properties`
  --
  ALTER TABLE `properties`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `roles`
  --
  ALTER TABLE `roles`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `schools`
  --
  ALTER TABLE `schools`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `statuses`
  --
  ALTER TABLE `statuses`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `tags`
  --
  ALTER TABLE `tags`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `transportations`
  --
  ALTER TABLE `transportations`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `types`
  --
  ALTER TABLE `types`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `attachments`
  --
  ALTER TABLE `attachments`
    ADD CONSTRAINT `attachments_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`);
  
  --
  -- Constraints for table `contacts`
  --
  ALTER TABLE `contacts`
    ADD CONSTRAINT `contacts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
  
  --
  -- Constraints for table `facts`
  --
  ALTER TABLE `facts`
    ADD CONSTRAINT `facts_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`);
  
  --
  -- Constraints for table `floors`
  --
  ALTER TABLE `floors`
    ADD CONSTRAINT `floors_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`);
  
  --
  -- Constraints for table `galleries`
  --
  ALTER TABLE `galleries`
    ADD CONSTRAINT `galleries_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`);
  
  --
  -- Constraints for table `locations`
  --
  ALTER TABLE `locations`
    ADD CONSTRAINT `locations_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`);
  
  --
  -- Constraints for table `model_has_permissions`
  --
  ALTER TABLE `model_has_permissions`
    ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `model_has_roles`
  --
  ALTER TABLE `model_has_roles`
    ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `neighborhoods`
  --
  ALTER TABLE `neighborhoods`
    ADD CONSTRAINT `neighborhoods_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`),
    ADD CONSTRAINT `neighborhoods_transportation_id_foreign` FOREIGN KEY (`transportation_id`) REFERENCES `transportations` (`id`);
  
  --
  -- Constraints for table `properties`
  --
  ALTER TABLE `properties`
    ADD CONSTRAINT `properties_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
    ADD CONSTRAINT `properties_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`);
  
  --
  -- Constraints for table `role_has_permissions`
  --
  ALTER TABLE `role_has_permissions`
    ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `schools`
  --
  ALTER TABLE `schools`
    ADD CONSTRAINT `schools_property_id_foreign` FOREIGN KEY (`property_id`) REFERENCES `properties` (`id`);
  COMMIT;
  
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  