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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$cdd1QUQo0DUmcA7X5G80uz.ke.L7A.1PuDS8UynsVxS5a/T/jtidA','admin','ak_0b8fefd5f783e542','2023-09-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$AkvHzXk2FC.Cp74kQRyf3lOB0IgpefuWzhRuzdCho64U0Zcyr.Hhs','user','ak_e1255026c2e4b918','2023-04-03 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$op1hfbsxQD8G5ZoGAFUfhBu3RaHG8wFaBBUcJ7GPL3T2RjisXm.TA','user','ak_af7f5f8bdd52cddd','2023-09-05 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$5MfROPC8SoXKp7eEdtorzeaDqDwq.1Yvmd2D77oNsqx9WOiPgo0vF','admin','ak_1d71dfe6e18aa521','2023-04-04 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$ArHJ6wt97WOyWdImIKfo7pOzj3k.3nDvL6DWFxTuYm5aynQjQBpnq','user','ak_75a320044618a325','2023-11-07 10:00:00',NULL);

