-- Host: db-master-8.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=19796;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$vP7DKMkTEWsaJc2VljFy2W9N4RiDGRA7cYt72ALF/dtdnjeeRS5p8','admin','ak_9ca9d1a730d8586d','2023-10-03 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$bIAgHESu4OmzyeJiVwAFyiMl5Bi2hCPAWwJiTPYOYoniQnlC4DZ8U','user','ak_1c879ca459708226','2023-06-10 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$Xu6zKf7ytldVHvricEx5TmYHmjJTy5U4MLgEHmvcoVgxdluqc3kCB','admin','ak_66255ac79c0db496','2023-08-08 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Hu/CnGcT3c1qsybza0U/YEAghg4dBaTUdhodGjAoPXR2vs8c/Qa6x','user','ak_ec4d24e0becc31d7','2023-10-03 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$dvsqpeT8lafjGNu6bkrm4yHZ8Ri./qa98xTprjoeSjXPnGh4Q5ILK','admin','ak_9ea5bd2d7fff8683','2023-07-10 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$jcCoWqpMe3mIqMaDVbicQhf3WEm2F4hnrk/3m4DxxS.QbAWXiuoIw','user','ak_88b86f6ee5742993','2023-08-28 10:23:00',NULL);

