-- Host: db-master-4.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=21679;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$KWc8.CCCPQiAa/CVG5TCWIxBOjOS5KI.ZY5dMEfaVFQ533XfjPsLJ','user','ak_1c092d026ed65775','2023-06-16 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$og7KHCrvn9J20xXfI9QwGZ9zOCnqosTbvnqqi/EOsHq5/AkofE07R','user','ak_fcdfa47e4ee34a7c','2023-11-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$ZK.LMKnSYNuaTNbmpHpjS1icLF0gBfn2B4nS5tR3If8Lu4vip1xEa','user','ak_e1e56e12d6c9a55d','2023-03-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$i/H66cLZouCAH5TRtOI0wxgt9dKMXBBJNnJEWnHIznclaPNXJuHXu','user','ak_dd1df64880108261','2023-07-20 10:10:00',NULL);

