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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$DWjh8kT9IprCdQAtC5i/PLim/3iiRgFKbtsFFWrDpeY58KOH.1Ztl','user','ak_e50b03a406618abb','2023-12-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$lgycubdEU7Qyv5PLlrMC0YXfe0N3dMSUcMNAIuz1bbLu.e5MM.7l3','admin','ak_ccde462d3c50fdcb','2023-03-27 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$1o6ogUmwJH3ipre6o0PT.fjMpurNq8LgI7RrxdnKz8mQIwauCD14b','user','ak_b5ccd09e965d1d4a','2023-06-25 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$xI1gc03qw42MeLBQ0DxzylnBgCLQieLK01SC8h.fjrmej5xbkW5t.','user','ak_181a6e650ea9d07f','2023-07-06 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$ODUE50mYdGONQdDCjNlXnutMJsWkyq0lwhGlpW39ylEEUWNBfsIOy','user','ak_df6a1e9040f5896d','2023-03-26 10:04:00',NULL);

