-- Host: db-master-6.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=34165;

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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=27195;

--
-- Dumping data for table `orders`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$QrWqkznQkahAjeGtdBQw8he4f5mOXmLSQjtjFr2ou6WLF2f/RFZw5','admin','ak_79c07c24527f3c57','2023-01-06 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$/n9QW0aT0ug7558DmQwo.IASSPOmRA9ZjY4Z8XZVz/02Jfh0C2Y3s','user','ak_44be1de73c360fe4','2023-11-20 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Sn1J8TvdlrxBaxLu6wJvExmaCpwFXP.8KAvyJO5ScBXLg5PcC25bv','admin','ak_6139dae58a6e6fa5','2023-08-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$p8sMPh.8LLDHaX55XJpFd4AJxIxpCf/jlOxax0SZ2JMS8UsKhFuse','user','ak_8c712a15dbfe1a79','2023-10-07 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$LXaKu1O6ndSF974SXuZteaRk7NJh3GSxYSIgM7uWtODqeS9FsbwVh','admin','ak_8ccb46419b1c9c1e','2023-01-26 10:12:00',NULL);

