-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3309
-- Generation Time: Dec 19, 2017 at 07:06 AM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 7.0.15

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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` int(11) 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'
) 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`) VALUES
(1, '2017-12-14 09:42:10', '2017-12-14 10:23:53', 'Antariksh', 'Ras Al Khor - Dubai', 123, '2100', '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.18221', '55.31020369999999', 2100.00, 400.00, 2500.00, '', '2018-01-11', 3, 11, 14, 19, 29, 1, 3, 5, 1, 0),
(2, '2017-12-15 03:17:20', '2017-12-15 03:17:20', 'Raheja Properties', 'Saadiyat Island - Abu Dhabi', 789, '1300', '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.', '24.4929286', '54.392709800000034', 1400.00, 600.00, 2000.00, '', '2018-01-01', 6, 12, 15, 16, 29, 2, 0, 1, 0, 0),
(3, '2017-12-15 05:46:32', '2017-12-15 05:46:32', 'trft', 'Qasba Canal - Sharjah', 656, '454', 'sdzff', '25.3211566', '55.37307780000003', 34.00, 3434.00, 3468.00, '', '2017-12-16', 1, 8, 14, 16, 27, 1, 0, 1, 0, 0),
(4, '2017-12-15 05:51:48', '2017-12-15 05:51:48', 'ert', 'Al Danah - Abu Dhabi', 3453535, '454', 'fghfdxh', '24.4706173', '54.35115689999998', 4545.00, 464656.00, 469201.00, '', '2017-12-22', 1, 12, 14, 18, 28, 1, 0, 1, 0, 0),
(5, '2017-12-15 06:06:58', '2017-12-15 06:06:58', '4545t', 'Sharjah', 4534, '455', 'fvhbcvh', '25.2359367', '55.3491818', 65.00, 656.00, 721.00, '', '2017-12-20', 6, 11, 13, 19, 29, 1, 0, 1, 0, 0),
(6, '2017-12-19 04:26:19', '2017-12-19 04:26:19', 'er5y', '46 Al Safa Street - Dubai', 464, '5656', 'rtfyr', '25.2061080197085', '55.26414396970847', 546.00, 5656.00, 6202.00, '', '2017-12-29', 3, 11, 13, 18, 30, 1, 0, 1, 0, 0);

--
-- 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=7;
/*!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 */;
