-- Host: db-master-4.internal    Database: customers


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=10203;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$40G6oPT4RttRjb8Cz0CePhLsDNa9fuZSzy6LY3txwurWZt966M.DR','user','ak_32bafb894390c84f','2023-08-01 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$incq4RGHyXP4M7jBiY8yFKKSdnFu4WD1gTyuue6BXTYot3Vk8EB4O','user','ak_00443a54e7392f9a','2023-09-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$aRhrBt955wKX.wreQ/AzTtDNM2EUZgUXR4M8akKoypqxp0bhQ1WPE','admin','ak_28ac7cb2f34a6664','2023-06-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$jmt9rLHCAQc8NVxRmhjn0LfqcVgvdDq12Wl5EYvARSdkyDNNP3H0n','user','ak_bde635ccb7277ab8','2023-11-22 10:20:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=34062;

--
-- Dumping data for table `sessions`
--


