-- Host: db-master-3.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=47537;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$L3LWRryJG/lXcMkfsXnf7jG8GjQiNaYAhKz7tOYcpzm6GsWCZWZ1R','user','ak_2281277cbd20ea46','2023-07-16 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Wjp/8Tfv8lrSrM8lrCdl8xa1TffAAwVkWaCBsnjUBYsae1HdYYaDy','user','ak_1c3b7f5de92538b3','2023-09-16 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$qzBqYXl3zAtYB4kmWh7Ws3Kkcyjxu5mKMlewnhfGOLUJt19292eHx','user','ak_d73873d11580878d','2023-09-23 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$MbXEh925L0P05y29ObZdRDhunlMc0XaV1yxprluXkN4C0tx5wVbM2','user','ak_d936105e29797c4b','2023-12-25 10:11:00',NULL);

