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


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$47HfjVUQWyDuIxI/VcCAKwWQcHc241A8l1ScsPJTtUklHkuuuxmEa','admin','ak_896787abe727cb4d','2023-07-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$fB6oWcMgOvmRmboCYPpzmY60Zht8OcdvVxPvR5OMV12N5irKobft1','admin','ak_59d834077781a9db','2023-08-09 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$4BvjBiKu1Vge3M6SRgthlHtAS0beAhZAmFao.nnnr4EYj2VhVjqgI','user','ak_ea9722ae3c199761','2023-04-02 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$4P8d0bP/ZezaKkfQgFogvpZdFlOng1xQ5NCqeFBc6vvKSxR9.ic9q','admin','ak_87cd3a38635bb993','2023-06-11 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$WcCPTUDN5YSnYsLKPdukznUmrQOBZpoJk2.WZsY.rg0d8oeyjhGL7','user','ak_74fd1cdb5e093112','2023-08-28 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$/hUk/uMeezSZcliS3K.gAJXWyxOn4oj97341ggoSFb/PsmZSev1O8','user','ak_9c77cf5adf29d26e','2023-12-23 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=46510;

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


