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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$L1REBvi7wh/TiEgSq0cDhxgEWaoMbL9KowGq3sG6uQZrmq1ECam22','admin','ak_60b6e48b76e0a7e2','2023-10-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$9kb/YstOxuWNG3pPMM7DEmcIeA.6HHt2vYVYBxkynTMB.TermuUKd','user','ak_671b9c1a94ed3a40','2023-11-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$uH/gxKhZdelh4AhdV8In.qlELcd6FOm7vttpbsfN9uEIRuASeebfD','admin','ak_a15ccc93a6aef948','2023-03-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$H3.IHuoXKCMgx.uSxoRXWMYShSNn.WEJcT54RxM41xM/7PGkUtLLw','user','ak_b471571746c35ac7','2023-12-22 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$g52JMG.d2KC0oHOMDzf6n5GhRyAAIQbletmAFT/OJvlgmM7fTVNF2','user','ak_4de3c1a21035f3fd','2023-06-10 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$Sw9wIikPz8oVymkyHaFDodRZ0rdWbmy2EptNZ0q6piHCUYSUhlpqz','user','ak_a70c2d777a536919','2023-02-22 10:21:00',NULL);

