-- Host: db-master-6.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=37885;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$KxM6XiR2mU1XY8FGcDsUC4dcDH2yFxX94UHUuwVYizf1pO.voTPLb','admin','ak_036a0e8f1dcf9ce8','2023-08-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$C0IuhEoLVKTYW49cwOHKOhmq8fTlZwWZiaTaoxaM/qmdT.RFlMNNq','user','ak_d86e412571ae8f7e','2023-01-04 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$95yGU7EV0Fh3zhTm/BuO53lluSL4bFJ993PGuASmBWlUGmI7OKlR/','user','ak_587e233d1f46b8a1','2023-02-13 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$zmqd.xqVhDOs3.LOZt9l2MAFPVVptRMyfbWpiHo79RD/QYY.VOWUL','user','ak_1e4222c819167c18','2023-06-07 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Ft7xCGhffLN2mTqjnHlF19ncucXj6Y22df39lTwqNUkKwqjk762Y3','user','ak_6749e401cde3d2a1','2023-05-24 10:04:00',NULL);

