-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 23, 2024 at 08:57 AM
-- Server version: 10.6.17-MariaDB
-- PHP Version: 8.1.27

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `aiderste_house_rent`
--

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

--
-- Table structure for table `contract_info`
--

CREATE TABLE `contract_info` (
  `contractid` varchar(14) NOT NULL,
  `rentorid` varchar(14) NOT NULL,
  `startdate` date NOT NULL,
  `enddate` date NOT NULL,
  `house_no` varchar(10) NOT NULL,
  `ownerid` varchar(15) NOT NULL,
  `cashpaid` double NOT NULL,
  `currency` varchar(8) NOT NULL,
  `status` varchar(45) NOT NULL,
  `roomid` varchar(15) NOT NULL,
  `dateSigned` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `houseimage`
--

CREATE TABLE `houseimage` (
  `house_no` varchar(10) NOT NULL,
  `title` varchar(55) NOT NULL,
  `directory` varchar(150) NOT NULL,
  `postDate` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `house_info`
--

CREATE TABLE `house_info` (
  `house_no` varchar(10) NOT NULL,
  `ownerid` varchar(14) NOT NULL,
  `reg_no` varchar(14) NOT NULL,
  `house_title` varchar(55) NOT NULL,
  `category` varchar(35) NOT NULL,
  `cduration` varchar(35) NOT NULL,
  `email` varchar(35) NOT NULL,
  `phone_no` varchar(15) NOT NULL,
  `country` varchar(45) NOT NULL,
  `region` varchar(35) NOT NULL,
  `district` varchar(35) NOT NULL,
  `ward` varchar(35) NOT NULL,
  `street` varchar(35) NOT NULL,
  `popularmark` varchar(55) NOT NULL,
  `rooms_no` int(11) NOT NULL,
  `distance_m_r` varchar(8) NOT NULL,
  `term_condition` text NOT NULL,
  `regdate` timestamp NOT NULL DEFAULT current_timestamp(),
  `cost_ifany` varchar(25) NOT NULL,
  `currency` varchar(8) NOT NULL,
  `finishdisc` varchar(125) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `inquirysms`
--

CREATE TABLE `inquirysms` (
  `smsid` varchar(15) NOT NULL,
  `house_no` varchar(10) NOT NULL,
  `receiverid` varchar(15) NOT NULL,
  `roomid` varchar(8) NOT NULL,
  `contractid` varchar(15) NOT NULL,
  `senderid` varchar(15) NOT NULL,
  `inquiry` varchar(185) NOT NULL,
  `postDate` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `roomimages`
--

CREATE TABLE `roomimages` (
  `house_no` varchar(10) NOT NULL,
  `roomid` varchar(8) NOT NULL,
  `imgdesc` varchar(185) NOT NULL,
  `directory` varchar(150) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `rooms`
--

CREATE TABLE `rooms` (
  `roomid` varchar(14) NOT NULL,
  `category` varchar(55) NOT NULL,
  `house_no` varchar(10) NOT NULL,
  `cost` decimal(10,0) NOT NULL,
  `currency` varchar(8) NOT NULL,
  `contract_duration` varchar(25) NOT NULL,
  `status` varchar(30) NOT NULL,
  `finishingdisc` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
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 */;
