-- Host: db-master-0.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=18420;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$2ObZPUL0HMTEdaAI5nvDdTKO5apAo6fRnL7NmSu/PvP0sQHSmUEOz','admin','ak_b443115ceaba5ee7','2023-06-03 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$Rw9ViHdg5NRCe2/1e6Qfgx63PCrWqiVOGVHxxoEnJw3OFHYyftqbd','user','ak_0c1e9142718e6e3f','2023-09-17 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$rySqJvrgOpnB.tbI7HnvK56/g2pEL7Fj1bVANTrLV47N7/JuRSKQB','user','ak_a66e532c848df405','2023-01-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$rM96lerzrKiZQONsEIb3WlL4vG7vgDWhdpfBJHFuas8f7SQZQ5KsH','user','ak_17303c871ba81421','2023-06-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$.07v872S0p0dFGn73OtR98XLXr.7OssViSXEBMZBwZ5GCDw58gjUj','user','ak_10ed61aeb23b9c74','2023-05-02 10:02:00',NULL);

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

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


