-- Host: db-master-5.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=28054;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$ru9QEtcPzp2.G.j.TarOiioVND6W2yTId5ssiWFR409rwYEnN.Zmb','user','ak_b065ca9474d7314f','2023-02-02 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$j81pYIHyJZjPgJ..CNXelUPvPV5aJzF8B2PUVdAuYJwRXbXUwVPNg','admin','ak_362c7d96509e842a','2023-10-28 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$DOMjd0erPyc/oxR/yFZRvOD1XW2hgsEzelnsrGXtFQpvAWlPX8uqm','user','ak_e62d5d73f6d76897','2023-01-05 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$/jQSWTLVOs5qQybFWkios.FgA.YFqh8Llsnbdjghc7XYd8pmY6n3A','admin','ak_d9f1a48b2098405b','2023-06-04 10:07: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=29255;

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


