-- Host: db-master-0.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=48269;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$sJEpBuGGXIfSrC8xsk9uto3NUWPyc.5MDZ00P8/Xymmst74IDTOUJ','user','ak_2a2386116def856b','2023-12-21 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$8WuvvxySYsuoDspEbgQJhljukqB5VVVfXXn2UWLRGvTDOzmEV7zZ.','user','ak_e2ac9bccce79a94b','2023-10-07 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Re9ENGMGtX72gs0vaGTx0quLYBdjkFvgkvf5.qB/SDvTm0yqYFeY5','admin','ak_965cec76da7de72d','2023-09-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$oEJjh/6RPl3H9T/.xmcYzeYXbXhWCS/QpUrHlLtcuZOSgSPF7mUOk','admin','ak_49572ff266eebf3a','2023-05-12 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$FHBv2ExVlgKOBwspCFzoLaxK8w5dV28gSyOB11NUwpzwhGiqxKyRH','user','ak_032a4005d712cb25','2023-10-18 10:06:00',NULL);

