Skip to content

Instantly share code, notes, and snippets.

@viralgh
Created February 16, 2023 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viralgh/33b763336f9e51f796419093cf27fdd0 to your computer and use it in GitHub Desktop.
Save viralgh/33b763336f9e51f796419093cf27fdd0 to your computer and use it in GitHub Desktop.
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Feb 16, 2023 at 10:12 AM
-- Server version: 8.0.29
-- PHP Version: 8.1.6
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: `supreme-sniffle`
--
-- --------------------------------------------------------
--
-- Table structure for table `archive`
--
CREATE TABLE `archive` (
`id` int NOT NULL,
`createdAt` bigint DEFAULT NULL,
`fromModel` varchar(255) DEFAULT NULL,
`originalRecord` longtext,
`originalRecordId` longtext
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `city`
--
CREATE TABLE `city` (
`createdAt` bigint DEFAULT NULL,
`updatedAt` bigint DEFAULT NULL,
`id` int NOT NULL,
`cityName` varchar(255) DEFAULT NULL,
`state` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Dumping data for table `city`
--
INSERT INTO `city` (`createdAt`, `updatedAt`, `id`, `cityName`, `state`) VALUES
(1676368303967, 1676368303967, 1, 'Vadodara', 2),
(1676368309422, 1676368309422, 2, 'Ahmedabad', 2),
(1676368315909, 1676368315909, 3, 'Rajkot', 2),
(1676368365595, 1676368365595, 4, 'Rohini', 1),
(1676368372019, 1676368372019, 5, 'West Delhi', 1),
(1676368391993, 1676368391993, 6, 'Narela', 1),
(1676368452313, 1676368452313, 7, 'Uri', 3),
(1676368456351, 1676368456351, 8, 'Badgam', 3),
(1676368485881, 1676368485881, 9, 'Jammu', 3),
(1676368485881, 1676368485881, 10, 'Argo', 5),
(1676368485881, 1676368485881, 11, 'Berry', 5),
(1676368485881, 1676368485881, 12, 'Calera', 5),
(1676368485881, 1676368485881, 13, 'Ashley', 6),
(1676368485881, 1676368485881, 14, 'Beach City', 6),
(1676368485881, 1676368485881, 15, 'Cortland', 6),
(1676368485881, 1676368485881, 16, 'Gillette', 7),
(1676368485881, 1676368485881, 17, 'Lyman', 7),
(1676368485881, 1676368485881, 18, 'Upton', 7),
(1676368485881, 1676368485881, 19, 'Airdrie', 8),
(1676368485881, 1676368485881, 20, 'Calgary', 8),
(1676368485881, 1676368485881, 21, 'Fox Creek', 8),
(1676368485881, 1676368485881, 22, 'Ange-Gardien', 9),
(1676368485881, 1676368485881, 23, 'Bécancour', 9),
(1676368485881, 1676368485881, 24, 'Chaudière-Appalaches', 9),
(1676368485881, 1676368485881, 25, 'Baie Ste. Anne', 10),
(1676368485881, 1676368485881, 26, 'Dieppe', 10),
(1676368485881, 1676368485881, 27, 'Saint John', 10);
-- --------------------------------------------------------
--
-- Table structure for table `country`
--
CREATE TABLE `country` (
`createdAt` bigint DEFAULT NULL,
`updatedAt` bigint DEFAULT NULL,
`id` int NOT NULL,
`countryName` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Dumping data for table `country`
--
INSERT INTO `country` (`createdAt`, `updatedAt`, `id`, `countryName`) VALUES
(1676292764892, 1676292764892, 1, 'India'),
(1676292778406, 1676292778406, 3, 'USA'),
(1676292782687, 1676292782687, 4, 'Canada');
-- --------------------------------------------------------
--
-- Table structure for table `state`
--
CREATE TABLE `state` (
`createdAt` bigint DEFAULT NULL,
`updatedAt` bigint DEFAULT NULL,
`id` int NOT NULL,
`stateName` varchar(255) DEFAULT NULL,
`country` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Dumping data for table `state`
--
INSERT INTO `state` (`createdAt`, `updatedAt`, `id`, `stateName`, `country`) VALUES
(1676366483299, 1676366483299, 1, 'Delhi', 1),
(1676366733835, 1676366733835, 2, 'Gujarat', 1),
(1676366877588, 1676366877588, 3, 'Jammu and Kashmir', 1),
(1676366483299, 1676366483299, 5, 'Alabama', 3),
(1676366483299, 1676366483299, 6, 'Ohio', 3),
(1676366483299, 1676366483299, 7, 'Wyoming', 3),
(1676366483299, 1676366483299, 8, 'Alberta', 4),
(1676366483299, 1676366483299, 9, 'Quebec', 4),
(1676366483299, 1676366483299, 10, 'New Brunswick', 4);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `archive`
--
ALTER TABLE `archive`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `city`
--
ALTER TABLE `city`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`),
ADD UNIQUE KEY `cityName` (`cityName`);
--
-- Indexes for table `country`
--
ALTER TABLE `country`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`),
ADD UNIQUE KEY `countryName` (`countryName`);
--
-- Indexes for table `state`
--
ALTER TABLE `state`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`),
ADD UNIQUE KEY `stateName` (`stateName`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `archive`
--
ALTER TABLE `archive`
MODIFY `id` int NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `city`
--
ALTER TABLE `city`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT for table `country`
--
ALTER TABLE `country`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `state`
--
ALTER TABLE `state`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
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 */;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment