-- Host: db-master-8.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=21912;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$CYVCWaaO13MFcU5a4fqPiRAH2cgyl.o/Uj1.wUmr3O/Ley0J1KohT','admin','ak_5f5420fc0ca24026','2023-02-08 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$/s.gm2Pu0zks8w3riQcVWPCSk7hyvH1o8AbuEVjIiREGfyD.gEyXN','user','ak_c05ac6ff425136c4','2023-06-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$hVcEKyYIoQbkVR3BzqM4gMCg/jbJyxqAUG2fXytYswBGdkQJCGQ.i','admin','ak_cb69991e2c6f39e1','2023-12-23 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$jyM1d6I/ZqAXmP8rRBpYXf80fHak42se09kh1EYikVVV98inLeqJ1','user','ak_99b2775fedc166a0','2023-03-04 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$c.SzFmIMxAHoXOjWl3seMssBHcjL9rcpgQjSKhG66jQYx5Cd4CHZg','user','ak_1d03008708fe6b2d','2023-08-01 10:03:00',NULL);

