-- Host: db-master-3.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=37382;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$MAwqWQbtCyxN0Fb8RNL5h9W6/fINU.rElM6TGgF5pi0WoMipgzAcq','user','ak_c96acf0d33466cb0','2023-02-26 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$KpbEEizpdyg.LiEgG7lUW0NAMA3X4XsQNP2g0ogP19uOwhGx8va3i','user','ak_71a52f528a01874a','2023-12-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$8y6rDAK7KTBBZUb03OlHh/hfTIU0aLvQpfNPIuQa9bxSi36piye8V','user','ak_6e5c98d47a51b300','2023-10-09 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$sqGAd3V0eXNDG.iDL.bOJrn4eGRGd8RHYBOFkz1wmjDrbq86tsOvk','user','ak_a9dfb6f578e96464','2023-08-08 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$AKkYnHEWXZ6WlcO5veUxG/Z8dHxUSv7..OxPA1RiQ9Xd.sRiqxuqi','user','ak_99774f4f387cf913','2023-06-18 10:10: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=40392;

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


