-- Host: db-master-7.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$xPqQJhlY5PVdSyd6tMluQcSMN7NOL2CzB/kaohuRg7JkQJ/NwqS3F','user','ak_835c30f96ce6deb7','2023-05-17 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$aPZok2bYXHxNXETPeSjapn/lIND.igLxMHKXwCsN73fmYi1jtTomm','admin','ak_8c4b1fe23c7f1f98','2023-09-07 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$ELh2YzGKgt7iBPIZfr8FRKTmgni6Cqkvda2C3yUFB55gB05RVplJ3','user','ak_8a4f4ba1c831e632','2023-11-01 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$9GrfG7FqnnYI8aTZINPM/YXP5mdY9yWLgv.Fg/EfLQrijmLm2XWQY','admin','ak_a259f3113edb07c2','2023-01-18 10:15:00',NULL);

