-- Host: db-master-8.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=34827;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$pn.vW39Rhz17HmockO/Kh693U4mpZXjkDxbW6.MT612.OFltaSBUm','admin','ak_0b07c05909067dc8','2023-12-26 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$cJx8IrcJ1jno5fn.8irjVRmiNoBYmKxAea7CAjUvqbi3CC7w1yKPp','admin','ak_4837a91a474e92f0','2023-12-08 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$qx.ZgYuFtBqXE5FFPXutR7GxG7KOh4Ff9/dDHj6qwU5ZKnYeF.nau','user','ak_62f0f6981c5fff1c','2023-02-12 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$IWAI/4Wn0ZL86jHS7ZBODuviK7YTDv32wfxjztzDAdLrp6hhJF49X','user','ak_016f149aa4de7206','2023-11-19 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$.jQ3gNPSqOUW/qclE6LNb8x6Z/kEtyWzXfPKIGJrYqOcKiiAx8OM9','user','ak_f274e50f18dc82c0','2023-02-20 10:03: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=35990;

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


