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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$Kxmhd.9mBjDlXImAZaCiSuOfOhfa2GiHt3hH3rNU3EsJQNokQlcDx','user','ak_e7af8e5514e2577a','2023-06-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$hXbiCHdu4L1v/eFKk99fx5JlEeRIM9by5Onq5T/mf0ZkCyJSMVN9n','user','ak_c9e43ae347ac5ed9','2023-01-06 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$tZLfrhhoc8lhlg6jL1YolNCTVrOoxcWcLniRpf5ITwozFuOnwDmsl','user','ak_ac961d38d6723be3','2023-04-24 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$yfjUWfz4r6oYxDP9Cy4dko9pGKlv1Vl4sHBuww3skxH9tdnxM2hWl','admin','ak_3337407f7650aec8','2023-09-24 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$lTbqTuPpLIM8kz.0.ogxdpt0wf.XpV8q23Zj6Tlc/zZhUKLCCa4gY','user','ak_86d9fbc9516da79f','2023-09-22 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$nMkcx0qpcsp/QLpk070hygk9PolMdm26xBIc5c3WLsvSDCQwBCJW4','user','ak_d82c9b982aa5b801','2023-10-10 10:13: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=32694;

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


