-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 31, 2024 at 01:55 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.12

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: `erp_management`
--

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

--
-- Table structure for table `states`
--

CREATE TABLE `states` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `country_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `states`
--

INSERT INTO `states` (`id`, `country_id`, `name`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 'Andhra Pradesh', NULL, NULL, NULL),
(2, 1, 'Arunachal Pradesh', NULL, NULL, NULL),
(3, 1, 'Telangana', NULL, NULL, NULL),
(4, 1, 'Assam', NULL, NULL, NULL),
(5, 1, 'Bihar', NULL, NULL, NULL),
(6, 1, 'Uttar Pradesh', NULL, NULL, NULL),
(7, 1, 'Gujarat', NULL, NULL, NULL),
(8, 1, 'Goa', NULL, NULL, NULL),
(9, 1, 'Haryana', NULL, NULL, NULL),
(10, 1, 'Himachal Pradesh', NULL, NULL, NULL),
(11, 1, 'Jammu and Kashmir', NULL, NULL, NULL),
(12, 1, 'Madhya Pradesh', NULL, NULL, NULL),
(13, 1, 'Karnataka', NULL, NULL, NULL),
(14, 1, 'Kerala', NULL, NULL, NULL),
(15, 1, 'Maharashtra', NULL, NULL, NULL),
(16, 1, 'Chattisgarh', NULL, NULL, NULL),
(17, 1, 'Delhi', NULL, NULL, NULL),
(18, 1, 'Daman and Diu', NULL, NULL, NULL),
(19, 1, 'Dadra and Nagar Hav.', NULL, NULL, NULL),
(20, 1, 'Manipur', NULL, NULL, NULL),
(21, 1, 'Megalaya', NULL, NULL, NULL),
(22, 1, 'Mizoram', NULL, NULL, NULL),
(23, 1, 'Nagaland', NULL, NULL, NULL),
(24, 1, 'Odisha', NULL, NULL, NULL),
(25, 1, 'Punjab', NULL, NULL, NULL),
(26, 1, 'Rajasthan', NULL, NULL, NULL),
(27, 1, 'Sikkim', NULL, NULL, NULL),
(28, 1, 'Tamil Nadu', NULL, NULL, NULL),
(29, 1, 'Tripura', NULL, NULL, NULL),
(30, 1, 'Jharkhand', NULL, NULL, NULL),
(31, 1, 'Uttarakhand', NULL, NULL, NULL),
(32, 1, 'Lakshadweep', NULL, NULL, NULL),
(33, 1, 'Chandigarh', NULL, NULL, NULL),
(34, 1, 'Pondicherry', NULL, NULL, NULL),
(35, 1, 'Andaman and Nico.In.', NULL, NULL, NULL),
(36, 1, 'West Bengal', NULL, NULL, NULL);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `states`
--
ALTER TABLE `states`
  ADD PRIMARY KEY (`id`),
  ADD KEY `states_id_index` (`id`),
  ADD KEY `states_country_id_index` (`country_id`),
  ADD KEY `states_deleted_at_index` (`deleted_at`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `states`
--
ALTER TABLE `states`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `states`
--
ALTER TABLE `states`
  ADD CONSTRAINT `states_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE;
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 */;
