-- Host: db-master-0.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=16313;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$WH1NRQPgrCjG/IgT8PqvrnBeg/123p1BnrJrzDmciFV8q9s36.IPy','user','ak_505b5ee9ec2938e8','2023-07-22 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$69ozYeikB/.t8wHVjkGaBIoLspsqvpnQbhsIUJKgXnzK6AGYQyiew','admin','ak_6db7048a9cd34b0f','2023-09-24 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$d6x8L/TII0jlDk25vuwBWdv8PBpucwLE45D6o2TRVgPaMnCGGh49/','user','ak_0f1bbf3c4ac63948','2023-04-27 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$uTgq8In.dvf6Es6.dwlTc/Ta4h6O/cAE5cOUyuMZXcaA4EqLFX8fK','user','ak_47079e654eb19ba7','2023-04-28 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$0DU3GyMElk2RsMewqLz3jp748iY8r3xWMvaRKbVRlwj1hDLBtH1Hl','user','ak_f25b29514cdd5082','2023-12-12 10:05:00',NULL);

