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


--
-- 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=21571;

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


--
-- 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=47660;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$HoQdVsgM.C0DM.F8rgPx9BThQrMhnyCctPxDhQ7pL9VeyIePFbVR2','admin','ak_217e1844fa892435','2023-06-05 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$hMrmx9zXn56CgzKv3IEnwXBYB.Xrv84ZoOlfNS.FDzOcLzQNM7zp5','admin','ak_fbfb2982872580f8','2023-03-18 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Rx8XeFXUtILVqHE4QBLwOhQkiMtZPpFxKKeXaiK6r.8X5PQgPIMRz','admin','ak_1cc38bf96c3d68ff','2023-12-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$KDnzCW1oS95Nyopjcf/FZJcZlwLExBHNH4N4F/zUJW.eK3UkNNml6','admin','ak_3ad0396d31fc35d2','2023-07-19 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$qYr9xoRETI3BZicjbLUAZHGDthb8Egjtb.FCkSucQRTe8iDAumu9p','admin','ak_857415c1c78f394a','2023-11-12 10:11:00',NULL);

