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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$rNYRlXRxuMTgU8mSkR57m.FXj2b8zTuOYFZvpHggrJeivzIjGaRnI','admin','ak_4dcab164d6cc08cf','2023-11-01 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$s8Y/6Vh4rhE2e3LOH3bnS2HUQY1Z8AoSAGjvamFFEdEYQF59Op4GF','admin','ak_27b57cb9b5a66178','2023-05-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$7vIUVz/gPOYhndZnpkTVKahSM7S50x5oyzEz7QM2ZDwGYkqKjKHpd','admin','ak_71ff5a925a3668f9','2023-01-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$NbOXrImnQ.AtVWqP8Oqo0lm01jv8Q5hXwPt65KVJu1ay6d.xEY9cs','user','ak_f56b4ddd3f0c6e85','2023-08-10 10:13:00',NULL);

