-- Host: db-master-3.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$HAHp2DLJM1pvTu7UztYUeazcYXs8oK5bk88bAmjNRt/RLTJVCseyB','admin','ak_906ed50df79618f6','2023-06-28 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$l87o3AVt1oh.2mCYOM23sEf0pXDQ6J7c2pktcz11rGfILfRDPKJ3V','user','ak_0e76e6e5cbd3a21d','2023-07-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$RD2P1V5.KcIZ6pb5aFAlMYBAUmNUSHaBBBuK4mJdFAZhCCUZ5EK7E','admin','ak_ba0162758a5f3caa','2023-08-05 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$UIhYP/331at8kOprCbHRY9ZvEfgQuQ33wEIiOCTQdX8.saU2URMaP','admin','ak_9347b4630254fd53','2023-08-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=18979;

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


