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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$BNx/j53kzrQFJpWdEaFj0Ae8G8sFV.SiBsopOJK9L5a6w1O5.CiEK','user','ak_5177525e38182552','2023-10-23 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$qGN6/rjtTB6kbPvmHDcZsHruXogzl5JuS51tOMW2fpCVOY/sA9f6p','user','ak_8bd7951d133d72fb','2023-05-23 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$42YPqkR1YPyyzjnBdXfVtFgJ0OzedPzXYLWH0Qc.GP.r8/o/9zse6','user','ak_727da2d2104d7756','2023-12-15 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$1qT7IrT15KosWdxV5zEmnoeksHuFz3DZKoQNZ2CvSsI9IqBI9GNRZ','user','ak_f624825586e18f9a','2023-03-12 10:00:00',NULL);

