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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$oiTzI8ORJBhA8xj9b4n9ggP5.NV0YUlOj0lYu7.pUExptneiksrAa','user','ak_24382a06037bfa32','2023-08-03 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$u1Ok/X/Ef/ywofc7P.WdgruZOHfP1Q7IqGVn9RhLy7XhBhG.rbUa7','admin','ak_1cc779be817971f2','2023-09-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$kW0Vn3c02HLNd/KW3UhbAn89s1w15aZ8Bh5CMELUlqqo35tqLevSQ','user','ak_bf04921311a4dc22','2023-10-03 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$e4qiWpO2dcOi8xZox9frED6SxH7nhARgqJCYufm8bw7F4B9cY0rhn','admin','ak_de8408794219b16c','2023-02-04 10:17:00',NULL);

