-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 05, 2018 at 12:42 PM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.1.13

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 `tenancy_contracts`
--

CREATE TABLE `tenancy_contracts` (
  `id` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `bid_id` int(11) NOT NULL,
  `landlord_id` int(11) NOT NULL,
  `tenant_id` int(11) NOT NULL,
  `contract_date` int(11) NOT NULL,
  `contract_month` int(11) NOT NULL,
  `contract_year` int(11) NOT NULL,
  `contract_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `property_usage` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `owner_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `landlord_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `landlord_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `landlord_phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `building_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `building_location` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `property_size` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `property_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `property_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `premises_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `plot_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `contract_period_from` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `contract_period_to` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `annual_rent` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `contract_value` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `security_deposit` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payment_mode` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_signature_date` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tenancy_contracts`
--

INSERT INTO `tenancy_contracts` (`id`, `created_at`, `updated_at`, `bid_id`, `landlord_id`, `tenant_id`, `contract_date`, `contract_month`, `contract_year`, `contract_number`, `property_usage`, `owner_name`, `landlord_name`, `tenant_name`, `landlord_email`, `tenant_email`, `tenant_phone`, `landlord_phone`, `building_name`, `building_location`, `property_size`, `property_type`, `property_number`, `premises_number`, `plot_number`, `contract_period_from`, `contract_period_to`, `annual_rent`, `contract_value`, `security_deposit`, `payment_mode`, `tenant_signature_date`) VALUES
(1, '2018-03-05 09:52:01', '2018-03-05 09:52:01', 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(2, '2018-03-05 09:57:09', '2018-03-05 09:57:09', 11, 22, 35, 1, 1, 1, '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'),
(3, '2018-03-05 09:57:51', '2018-03-05 09:57:51', 11, 22, 35, 1, 1, 1, '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1'),
(4, '2018-03-05 10:11:19', '2018-03-05 10:11:19', 11, 22, 35, 2, 2, 2, '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2', '2');

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

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