-- Host: db-master-0.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=18316;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$C1qISIAXN1MNdTOMtYDC3Y4Q6a.UD3qszN6GjNSZXHb5ck4lC42y4','user','ak_5fb05faf681e07ef','2023-01-03 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$P06vE1Pdoe7RCYpjCDfMw0SPi1OWwaLwXEAUS2z8KLbBH51uInRJR','user','ak_595f3895dbf80fe1','2023-06-07 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$IIyd4GrGGeBz3XCBdoCg37OAnaKRJz1i0YMuby9hlWZXlS23ttjXJ','user','ak_6885c998af1398b7','2023-07-28 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Cpwa0bJKpAj1AYOt5BKnyn/90Tb/e0Sg5mVJzqrwbnvTh0T0kgVAR','user','ak_e05870bb835747ad','2023-03-14 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$jwktLMT1/j5jWGBR9GhYy1NDv5cfeSp8jJuyZiI4sgLUmKLKhpXOM','admin','ak_4c65fa4c3833592f','2023-08-24 10:09: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=6139;

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


