-- Host: db-master-0.internal    Database: production_db


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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=39206;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$QP3HX7Wd4TFCenQFW071mVzcvGt0fLOGzVfleKIiptXJLWu4o3H1Y','user','ak_26d79f8903656247','2023-05-11 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$dPuuG2bqVcMxkZ/RheCFtW9XLwYifDiOaxgoiXlx45g8.7i3w8Gyb','user','ak_203d85618f3cabaf','2023-06-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Gu81vFgNgGtfw15vUt4dhx2gY8rynRYHM4ToV3u2yfMoWXVt75Edc','admin','ak_d1005361e29167a0','2023-12-23 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$SrdZdezf2JxFPxQTpb8ePzZDAbB929Otva9/fetSOhzUmz3ql51hc','admin','ak_d445b3372724cdde','2023-06-15 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$Xijqh/F.gywX4m.pMVr7YHtmeVZvCy89mVPswXqasVYOV/jAzX7Is','user','ak_8b5fad7a182c1afa','2023-12-05 10:21:00',NULL);

