-- Host: db-master-1.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=6667;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$VPQ.IuJ4UCzz9ukOKiF3fp.a2oa5HujQkFeSsmYGDI.iHxk/kFZTx','user','ak_02c90bb3be527951','2023-03-27 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$wm9xsoHC7bfLgWngfpZwcxaMUwetIoDq0ldybmfKofxLPsIrY8vf7','user','ak_1e8ed455bc886b9f','2023-09-19 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$52ekvFDp2nl2mJNgnfiY0dusw6paTxPgMYUywX0hfXJEx8mF4efJd','user','ak_c06c30fa4987ca71','2023-02-09 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$p8wJnK.LFc9PBXnPNPnOjPAmY1Swt4CA3cA9ynYjW.7TzY/zhFqKA','user','ak_5aaba4fd6d6920d2','2023-03-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$E673w2n8zV5vIZ4r9PQgEmNu2/9FPtUMqb3aIC0Dng/NhGGkpbmNY','user','ak_3dd36f0cdd9bb36e','2023-07-16 10:07:00',NULL);

