-- Host: db-master-9.internal    Database: webapp_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=38119;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$ovIhWbaTI6bXzrayBCpSYNr5yPzG/wxTriNegA0.rT5gsKGxFOjVy','admin','ak_e9a8498bc2fefa5e','2023-06-11 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$TtDPaLEmDaNaXHZyN4Nwg/R.cuS4Pc8DiRbLAP3MYryR0cwFAgAtW','admin','ak_b975b892a54494e4','2023-12-04 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$uDVL/YKFTyxxH04wF.4ozendxhPOlYx8BI/tNR/mtJirRtepNrjJF','admin','ak_c18a72c07ec304e2','2023-01-07 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$QYehOC.NRKvgJEITh.aEyYf8iPDePuaxJHhmWB3DdQxQFfYxolhWm','user','ak_efbe1d78b63cf63e','2023-06-13 10:08:00',NULL);

