Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 5.0.2
- -- https://www.phpmyadmin.net/
- --
- -- Host: 127.0.0.1
- -- Generation Time: Dec 07, 2021 at 09:27 AM
- -- Server version: 10.4.13-MariaDB
- -- PHP Version: 7.4.8
- 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: `sample_db`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `orders`
- --
- CREATE TABLE `orders` (
- `id` int(11) NOT NULL,
- `property_id` int(11) DEFAULT NULL,
- `plot_id` int(11) DEFAULT NULL,
- `no_sqyds` int(11) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- --
- -- Dumping data for table `orders`
- --
- INSERT INTO `orders` (`id`, `property_id`, `plot_id`, `no_sqyds`) VALUES
- (1, 1, 1, 25),
- (2, 1, 2, 50),
- (3, 1, 1, 25),
- (4, 1, 3, 50);
- -- --------------------------------------------------------
- --
- -- Table structure for table `properties`
- --
- CREATE TABLE `properties` (
- `id` int(11) NOT NULL,
- `name` varchar(255) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- --
- -- Dumping data for table `properties`
- --
- INSERT INTO `properties` (`id`, `name`) VALUES
- (1, 'Lake View Park');
- -- --------------------------------------------------------
- --
- -- Table structure for table `property_plots`
- --
- CREATE TABLE `property_plots` (
- `id` int(11) NOT NULL,
- `property_id` int(11) DEFAULT NULL,
- `no_sqyds` int(11) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- --
- -- Dumping data for table `property_plots`
- --
- INSERT INTO `property_plots` (`id`, `property_id`, `no_sqyds`) VALUES
- (1, 1, 50),
- (2, 1, 75),
- (3, 1, 100);
- --
- -- Indexes for dumped tables
- --
- --
- -- Indexes for table `orders`
- --
- ALTER TABLE `orders`
- ADD PRIMARY KEY (`id`);
- --
- -- Indexes for table `properties`
- --
- ALTER TABLE `properties`
- ADD PRIMARY KEY (`id`);
- --
- -- Indexes for table `property_plots`
- --
- ALTER TABLE `property_plots`
- ADD PRIMARY KEY (`id`);
- --
- -- AUTO_INCREMENT for dumped tables
- --
- --
- -- AUTO_INCREMENT for table `orders`
- --
- ALTER TABLE `orders`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
- --
- -- AUTO_INCREMENT for table `properties`
- --
- ALTER TABLE `properties`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
- --
- -- AUTO_INCREMENT for table `property_plots`
- --
- ALTER TABLE `property_plots`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
- 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 */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement