-- Host: db-master-1.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=35313;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$mUjQ39sjZ0zEu1kzpnT7.xuSoHtfQIhLoq.OQPBIOR8wx2rUgx0Nt','user','ak_2e731cb4c185a2a0','2023-10-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$KI4AdGG68IqP1x63WdNBpBER6wOdnH26LGsLPW.ZJ3vHXP8WzeveP','user','ak_882febc45b7c2726','2023-09-17 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$iSX45/gCRgLcwbIsylxVJwc5n81xk1gw0n5f4LSGt6efMdl.Z0IJJ','user','ak_3b12604ebe0a242a','2023-08-26 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$yQamPMi9t/XvV5sx5u0dPPsohQQ5ONDEIeNmMI14Pt0/pahbO3twa','admin','ak_683d20d2acff4d5f','2023-03-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$.dwHAp87WOYBpZdiyvECal5uECZjRUNT9ksEoqOOWb.u3zeO.ICS9','admin','ak_52ac90c27998e8a5','2023-01-05 10:17:00',NULL);

