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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$CYOZ0PjXUZwQubYjz.auExmYP5KyYeS/CHyO7Y/tGDdsiQauL8JQw','admin','ak_0352a79471380ac0','2023-02-15 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$lwkJQJYhAfTzEEQPS4ujzj02V2oWrNkVqOkZ0zM/j3eYmz4/T5BVR','user','ak_51b6110cdc6f8c1f','2023-03-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$LtM8DPeZteh8l6es86XdlSi81NwlGm/Sv7ByubjLozzweJ3p5I4R/','admin','ak_6e450cf8a6389a75','2023-07-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$.0BoqxlyZFVIrulgsChrsKVRfGF2aDgQpiwVt7WUvLwfMC.Bug.43','user','ak_7cc4b4755eb776ec','2023-08-07 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$uEk09LOqOYdgseWA6H//587O8h2M8oSxxOEzR5dHj7Wo61fUetHzD','admin','ak_69c2b774f3155db4','2023-07-23 10:21:00',NULL);

