-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 13, 2018 at 06:06 PM
-- Server version: 10.1.28-MariaDB
-- PHP Version: 7.1.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: `bid2rent`
--

-- --------------------------------------------------------

--
-- Table structure for table `properties`
--

CREATE TABLE `properties` (
  `id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Property Name',
  `address` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `area` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `latitude` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `longitude` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `monthly_rent` double(10,2) NOT NULL COMMENT 'Monthly Rent',
  `security_deposit` double(10,2) NOT NULL COMMENT 'One time deposit',
  `total_price` double(10,2) NOT NULL COMMENT 'Sum of monthly rent, Security Deposit and additional deposit if any',
  `other_policies` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `available_from` date NOT NULL,
  `emirate_id` bigint(20) NOT NULL,
  `property_type_id` bigint(20) NOT NULL,
  `vieweing_option_id` bigint(20) NOT NULL,
  `bedroom_size_id` bigint(20) NOT NULL,
  `washroom_size_id` bigint(20) NOT NULL,
  `landlord_id` bigint(20) NOT NULL,
  `bid_count` int(11) NOT NULL,
  `property_status_id` int(11) NOT NULL,
  `bid_selected` int(11) NOT NULL DEFAULT '0' COMMENT '1=>yes, 0=>No',
  `view_count` int(11) DEFAULT '0',
  `property_term` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '1=>Short Term, 2=>Long Term',
  `bid_closure_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `properties`
--

INSERT INTO `properties` (`id`, `created_at`, `updated_at`, `name`, `address`, `unit`, `area`, `description`, `latitude`, `longitude`, `monthly_rent`, `security_deposit`, `total_price`, `other_policies`, `available_from`, `emirate_id`, `property_type_id`, `vieweing_option_id`, `bedroom_size_id`, `washroom_size_id`, `landlord_id`, `bid_count`, `property_status_id`, `bid_selected`, `view_count`, `property_term`, `bid_closure_date`) VALUES
(1, '2018-02-02 15:29:21', '2018-02-12 19:51:19', 'Clark Inn', 'Downtown Dubai - Dubai', '1201', '1600', 'Best property in downtown area. All facilities are there', '25.1853112', '55.26743160000001', 2100.00, 900.00, 3000.00, '', '2018-02-05', 3, 8, 14, 19, 29, 22, 2, 1, 1, 6, NULL, NULL),
(2, '2018-02-02 15:34:19', '2018-02-07 17:56:46', 'Estate Valley', 'Sharqan - Al Heerah Suburb - Sharjah', '123', '2100', 'No description', '25.3736541', '55.402550700000006', 4500.00, 500.00, 5000.00, '', '2018-02-12', 6, 9, 13, 19, 29, 22, 1, 1, 1, 1, NULL, NULL),
(3, '2018-02-02 15:49:39', '2018-02-12 19:18:00', 'Aqualily', 'World Trade Centre - Dubai', '28AB', '85', 'Lets us know about your property. SQ FT, locality, what’s close by, any upgrades or special features. Please be as accurate as possible so perspective tenants have a clear idea of the property.', '25.2233933', '55.285422100000005', 8600.00, 1600.00, 10200.00, '', '2018-02-11', 3, 12, 15, 18, 27, 25, 1, 1, 1, 8, NULL, NULL),
(4, '2018-02-02 16:31:08', '2018-02-12 19:22:34', 'Silven country', 'Princess Tower - Dubai', '8941', '80', 'Lets us know about your property. SQ FT, locality, what’s close by, any upgrades or special features. Please be as accurate as possible so perspective tenants have a clear idea of the property.', '25.0872760197085', '55.14550901970847', 8600.00, 1500.00, 10100.00, '', '2018-02-27', 3, 11, 13, 18, 27, 25, 1, 1, 1, 4, NULL, NULL),
(5, '2018-02-03 18:07:56', '2018-02-11 22:02:49', 'best villa in al furjan', 'Al Furjan - Jebel Ali Village - Dubai', '473', '2800', 'nice villa close to all amenities and shops,', '25.024834251613097', '55.15693012923589', 7000.00, 7000.00, 14000.00, '', '2018-02-12', 3, 9, 15, 19, 29, 32, 1, 1, 1, 13, NULL, NULL),
(6, '2018-02-03 18:10:14', '2018-02-12 19:16:36', 'al furjan', 'Al Furjan - Jebel Ali Village - Dubai', '472', '2800', 'all great come see it', '25.02460093151652', '55.15669409484258', 5000.00, 5000.00, 10000.00, '', '2018-02-04', 3, 9, 13, 19, 30, 32, 1, 1, 0, 7, NULL, NULL),
(7, '2018-02-04 18:20:43', '2018-02-12 19:12:34', 'UCS', 'BM Towers - Sharjah', '2304', '1000', 'Lets us know about your property. SQ FT, locality, what’s close by, any upgrades or special features. Please be as accurate as possible so perspective tenants have a clear idea of the property.', '25.303958893489593', '55.3714790263308', 5000.00, 2500.00, 7500.00, '', '2018-02-14', 6, 8, 14, 17, 28, 9, 1, 1, 1, 1, NULL, NULL),
(8, '2018-02-06 13:33:47', '2018-02-08 14:00:01', 'Springfield', 'Opal Tower - Dubai', '8943', '80', 'Lets us know about your property. SQ FT, locality, what’s close by, any upgrades or special features. Please be as accurate as possible so perspective tenants have a clear idea of the property.', '25.1842170697085', '55.274438569708536', 8700.00, 1500.00, 10200.00, '', '2018-02-22', 3, 11, 14, 18, 27, 25, 1, 4, 1, 0, NULL, NULL),
(9, '2018-02-12 18:14:30', '2018-02-12 19:17:39', '5BHK', 'Sector 10 - Abu Dhabi', '89A', '8500', 'Lets us know about your property. SQ FT, locality, what’s close by, any upgrades or special features. Please be as accurate as possible so perspective tenants have a clear idea of the property.  Test', '24.3341543', '54.64445120000005', 4000.00, 8000.00, 12000.00, '', '2018-02-28', 1, 12, 13, 21, 32, 25, 1, 1, 0, 3, NULL, NULL),
(10, '2018-02-12 19:26:58', '2018-02-12 19:59:29', 'Raheja Property', 'Downtown Dubai - Dubai', '123', '2324', 'Good one', '25.1853112', '55.26743160000001', 4544.00, 100.00, 4644.00, '', '2018-02-20', 3, 12, 13, 18, 29, 22, 2, 1, 0, 3, NULL, NULL),
(11, '2018-02-12 19:29:01', '2018-02-12 19:39:20', 'Vatika', 'Sheikh Zayed Road - Dubai', '34', '3224', 'Good', '25.0595756197085', '55.12763051970853', 500.00, 100.00, 600.00, '', '2018-02-15', 3, 8, 15, 19, 29, 22, 1, 1, 1, 2, NULL, NULL),
(12, '2018-02-12 19:48:30', '2018-02-12 19:49:12', 'Pent House', 'Executive Towers - Dubai', '52', '2000', 'Upload pictures to give a great impression of your property. We recommend including sitting room, kitchen, bedroom and balcony/garden.\r\n\r\nLet the tenants know if they can view the property choose either, open house, keys at reception or no viewings', '25.1894680197085', '55.264445019708546', 3500.00, 6000.00, 9500.00, '', '2018-03-01', 3, 11, 14, 21, 30, 25, 0, 1, 0, 1, NULL, NULL),
(13, '2018-02-12 19:58:28', '2018-02-12 22:00:01', 'Ushyaku', 'Etisalat Metro Station - Dubai', '249', '1555', 'Lets us know about your property. SQ FT, locality, what’s close by, any upgrades or special features. Please be as accurate as possible so perspective tenants have a clear idea of the property.', '25.2534304197085', '55.399694119708556', 1000.00, 1500.00, 2500.00, '', '2018-03-01', 3, 8, 14, 19, 29, 22, 1, 1, 1, 3, NULL, NULL),
(14, '2018-02-13 09:28:41', '2018-02-13 09:28:41', 'New Property', 'Hamdan 5th Street - Abu Dhabi', '123', '1234', 'lkfjlsjdf', '24.4878514197085', '54.36052611970854', 2000.00, 500.00, 2500.00, '', '2018-02-21', 1, 12, 13, 20, 31, 22, 0, 2, 0, 0, NULL, NULL),
(15, '2018-02-13 09:51:55', '2018-02-13 10:14:00', 'gvhgf', 'Dubai Marina - Dubai', '6767', '787', 'svdsf', '25.0656803', '55.123847599999976', 8787.00, 7686.00, 16473.00, '', '2018-02-14', 3, 8, 14, 16, 27, 22, 0, 1, 0, 1, '2', '2018-03-16');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `properties`
--
ALTER TABLE `properties`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `properties`
--
ALTER TABLE `properties`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
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 */;
