-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$DFcMSNOo/GxOTFxF7mLjOD8j958pdyut7kGRmLdKhGlWXt12.50cq','user','ak_b4c8c28c1f2ffc02','2023-03-24 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$IFUrG4xaWwLOpZxKWW4oh/Aae2ZK2DT79DxmuhjNzwZyD6P0AV6PV','admin','ak_f8bd3f4a816e0345','2023-10-07 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$hCpI89reGD4udwJxqSmPyCf8b8wwJDtG/9s9oaspfUVCtOQ0.oEGC','user','ak_6a53e1c62d042bbb','2023-04-08 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$KZEU32ldKc40VaYWq7CTO0TJclXhIvASdh4IawqoRIbdaKEsOunvc','user','ak_d228b685accbdd7a','2023-04-25 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$qVIeOXvqYISvv3aVU8TBIua6aiBxCtQGoho3oGWa7JGXG2bfO.LHt','admin','ak_bf20da4f8f421d7c','2023-02-28 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$Yv4mz0WVit6zegU.O8lSx10nZomMLZYX6V.E.lQN7yPTA07kfCny2','user','ak_ecca14c566b19192','2023-11-21 10:07:00',NULL);

