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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$ZfmVu8bZKTE2uNJOgAQO6b3ZeZTZ8oxNsV3b5cxM1koJxr2mrJXdi','user','ak_8e2a590ea14ccc19','2023-03-09 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$X78yUxuptViIHS6u5fBJhoHGuHOY6zXTcj4cY2D9tzRKMCSWIsm89','admin','ak_6cd4392932bb406b','2023-09-17 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$QYC5exHsz9GZZbz2S2P/QMo/8SxVnN2TMiBICHip0YuJxcvhUbYGV','user','ak_fe8ba952a9033f6b','2023-10-28 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$o1DDV6LvBEhbqOPK./sO59dtbNgDQKu57NP70x4TnR5I7OIyiMMaK','admin','ak_4c543ae7776a7b63','2023-09-04 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$P6.zIemW61I9p/.CP.MsMGhn1KSloFhe1Xz2b6KWTAsGlCVPFzoP.','user','ak_ea8a7704a85e6774','2023-01-22 10:04:00',NULL);

