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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=7210;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$uYUFRVVRC.gPNIGq.iGe5m3n/dNG279InP1e6cCzYOiX5/XCFXZq/','user','ak_0f23a1fcd2a811c8','2023-02-11 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$A5Y7DQdZLyD90eZ7rJNmBXp1MDzfVXLI5.IGbzROfsQqHbVDG6uUF','user','ak_e30ae9c20a7343aa','2023-07-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$BD7tIfUbyjpN8aKpkzoXKi94lbypSVLECWY8j2UsXFoelBk4/6Arg','user','ak_65cb4f1d1b26a309','2023-08-18 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$KjbmGa8wF2J1z/bPgY0f8K0.K8345lZZJFjMvr5u0kPzKehgjGekl','user','ak_de0fdfc03ef4189b','2023-03-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$Fu7nfEvs1iVo4eTp0i.6jY/ho0fxFY4X1pHugk7Mv.FJ25K0hflu3','admin','ak_1f74e352c10906c0','2023-02-26 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$sn7IDxw9P7to3IXcvSsk0C8AhsAw8Xmdt.j1pc2/BNmvBv6X8jpAQ','user','ak_b4b3be401aa1eb11','2023-09-10 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$rAFrBJYxneHcFEpnL0HX21h58N5Eq9voSjYh3D3jH3d1f8g7YWrse','user','ak_890e6a7ae4ca171a','2023-02-12 10:02:00',NULL);

