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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$bJzuKi.LqWeU6dgt7VHLx8Y0IKYvH.G885Vi6O5fT8/Bj4XsXSupt','user','ak_ea9a466bd8bcec21','2023-01-22 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$rBey6bVmGo9zsf6TBAPO37yD6wRtzETBbhFlbKHA0ka51QvOe.lPU','admin','ak_1a22cc7f587d5b44','2023-05-21 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$VgEvG.4qYODyIWaeOjZ3ZZlMARskGD476EZgu./t0q79sqln.AACr','user','ak_d0e8efe0d6593144','2023-02-15 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$wI.UkfvlByO62jBYW6qd/1Kapq4D.tEPHbDCWpr39JRfhKQrFATRX','user','ak_4cc807fa94249f8e','2023-08-16 10:19:00',NULL);

