-- Host: db-master-6.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$IDvwfmdvs8eSauD0KOrx7zKwQHANr2oPbnAlzwlwJQ8A8O3DDlwFp','user','ak_5369a464ac65b5aa','2023-04-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$lspNk5Nw6uDo6dhK6ZkdfyCnkuiSaR8lP4U3HeNr/DM3/ZX5UDNnd','admin','ak_7b068a17c27c443b','2023-04-12 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$noCSIC0F3P5KF6YXK4Myx4wPp.rRCtIUci2ciT59v3zndJaTuAktQ','user','ak_b8e2f6d48ca30393','2023-11-04 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$2OItf7C5ZBQayg6e0CUh5HQYz8vxLvaHj2cSojkxpdj0CO4b0E1VW','admin','ak_c50bc9d149aba90f','2023-01-12 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$5sDb/p3xhvTGR5RBldfPN8HbUrkWX0QGF6MsxW1fhecRN0.HcrRNA','admin','ak_e23c5af1a172e75d','2023-01-28 10:06:00',NULL);

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

--
-- Dumping data for table `sessions`
--


