-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 16, 2026 at 03:24 PM
-- Server version: 10.6.23-MariaDB-cll-lve
-- PHP Version: 8.4.14

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

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

--
-- Table structure for table `users_locations`
--

CREATE TABLE `users_locations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `location_id` bigint(20) UNSIGNED 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 `users_locations`
--

INSERT INTO `users_locations` (`id`, `user_id`, `location_id`, `created_at`, `updated_at`) VALUES
(1, 13, 27, '2026-04-15 12:23:57', '2026-04-15 12:23:57'),
(2, 14, 1, '2026-04-15 12:38:13', '2026-04-15 12:38:13'),
(3, 14, 2, '2026-04-15 12:38:13', '2026-04-15 12:38:13'),
(4, 14, 3, '2026-04-15 12:38:13', '2026-04-15 12:38:13'),
(5, 14, 118, '2026-04-15 12:38:13', '2026-04-15 12:38:13'),
(22, 15, 24, '2026-04-15 17:06:56', '2026-04-15 17:06:56'),
(23, 15, 25, '2026-04-15 17:06:56', '2026-04-15 17:06:56'),
(24, 15, 26, '2026-04-15 17:06:56', '2026-04-15 17:06:56'),
(25, 15, 27, '2026-04-15 17:06:56', '2026-04-15 17:06:56'),
(26, 15, 28, '2026-04-15 17:06:56', '2026-04-15 17:06:56'),
(27, 15, 29, '2026-04-15 17:06:56', '2026-04-15 17:06:56'),
(28, 15, 30, '2026-04-15 17:06:56', '2026-04-15 17:06:56'),
(29, 15, 41, '2026-04-15 17:06:56', '2026-04-15 17:06:56');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `users_locations`
--
ALTER TABLE `users_locations`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_locations_user_id_location_id_unique` (`user_id`,`location_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `users_locations`
--
ALTER TABLE `users_locations`
  ADD CONSTRAINT `users_locations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 */;
