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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$sMGamn1LOn2ErdvOaD3.s9DRO3jJCD8nGa.K6M3QE6sx8sLOBiuhG','admin','ak_7d3d51579552362a','2023-01-19 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$K7jyyNCQ16IkL3A9Bc7GdrZGltJCRx3.V92IRxC60/xF1PpDkL7eH','user','ak_2de44aa8ea6afc1a','2023-08-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$iGfDI/borA.HJBU4v.mzIeojflj7GcTEQ8BLiQXjbJsG5wMx6GqN3','user','ak_eaa4df5d04b3706d','2023-01-23 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$DCEuAWW9ZTMi9gWihLSAraAciW/bIxgLHqSEDo/h8vYlp..6bwXOL','user','ak_7bad924804d6a367','2023-10-23 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$PH87WndNRVIy8KPj2qK1uX2BKB9V8XTxbqyGUIRmA8VoNw.389Y0N','admin','ak_b963810464cec08d','2023-11-26 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$k4ufhoUKKK8YtyTh3NYLHsZ2pInr3JnPLa680QhAwKUW2UmMgNqAo','admin','ak_050cedd198d717eb','2023-06-25 10:22:00',NULL);

