-- Host: db-master-5.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$XXTkGLp8GrZWewgM6rUg6IIU5B0h3t48ffm9o/ypC3ZtfxdU9Wcv4','user','ak_c9accf48c5a173fa','2023-08-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$4eUnt4Y5pCW/i8tB.ovrdfgEDBMHILK9ImHRU1jy66zWiiqMN1sDk','user','ak_9f901ad93eb4fe6a','2023-11-03 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$TW/r5L0I9xjxRwHJmyzGrp6OW3A8ok8v25Uw18s6uYqu3VjV/Tnyq','admin','ak_319d5dc02f329ee3','2023-11-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Ar39yax6EsAg/uzXGOYpGCgejD/43ElzBFQcR79IO7XcCx40s5tHk','admin','ak_667dff6de68c8bf7','2023-05-06 10:12:00',NULL);

