-- Host: db-master-3.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$ElFlxa9nsFXsRFxyVJsndN.56N5lxw72b/HfIZsm4RP4TNjEHeumw','user','ak_bd8f75eb6e37b158','2023-06-08 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$bFmVH9yAr7QuasIVzHivbh4T0.nVNoHcZyd.CIK0i6zCx7bih69dC','user','ak_68172a2d45719263','2023-08-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$tne6Z3U.SJ4PRigL9Y5ziBC.hp1Uz5LRsUwIH7OJvHYUrfivZi8hc','admin','ak_b936d4cd1acd8a9a','2023-07-17 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$3cd5FcU0lGlQApnrV1A3ooOT7dzwIDSUACinM7LIW/lsF72xtFdhE','user','ak_a2a3e6429e994de6','2023-06-16 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$H2v4r4CaPlf3h9trcUfIasVFO0TKzwuprO2YQ21T.JuvC3ZsL.sVU','user','ak_266335f37f667718','2023-08-25 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$tWr/gcH5WbWIFSOt5gMSoCP.Fxvndp72yuppxwmiJIDNVixs6TUK9','user','ak_66f5f1530a5e73b5','2023-12-27 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$ryx9Dp7q4PJ2QeYCdskF748dWz.AEBLHRm7coCK0fOWEze04tIIAR','admin','ak_dbf09d302b72feda','2023-02-18 10:09:00',NULL);

