-- Host: db-master-4.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=4957;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$CQo4mSHYjyS34FudJpH5jBlSjzO8Fd6HrMowGyDlNOz15f.MbktwG','user','ak_478d8c2d55e471e3','2023-07-24 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$0.mDbsrDZ0CwAh96r5oh4HSGSz.AW7l.8nlxKtfkCRi6QQZgJ2OAT','admin','ak_d4e21c01e37913fd','2023-11-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$uyrO03SEuAj2pJrRL7VTBHXi13x2nEixrpiphQR59HF2ymBw96oFc','user','ak_dfd2c7ee0b75a399','2023-06-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$aTXf.ksa8KrsBYYDrmAk3GOdtK2bU2gGHrbtngjG40HzWBZi85uU1','user','ak_c9f26b56dc6d11d0','2023-10-22 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$hRRkUmz2Utoonsco013FPL0dbrbgxRAI90TeVmBNEg6r1giSOTBtH','admin','ak_bf1b60755e6d4d9a','2023-03-16 10:19:00',NULL);

