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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$b6N5zibkCf7LT5p13kFIkxZSnlaUfQzvTd37CjV5IKsW0VWbmBmBc','user','ak_fd68a94a5bf4709e','2023-04-08 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$JKns6phzKSNJ86tHh2dQJoMBiWsPaWPp1ZR/F7v2cBYfFUOpoMXB6','user','ak_3b3da80efd0ecef0','2023-03-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$RGlM0Kh3GYcoU43EKuWE.OO3X4yZKf9ZeCJMVuokG24lpT45DnlAs','admin','ak_e25b13cbf0b9dbba','2023-07-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$NmnxF2TNf2zgUhp8wJpCC6rTudUecdDCpFCx0q65ISnHVv3hOq/xb','admin','ak_7ddf0cf659d7db2e','2023-01-05 10:09:00',NULL);

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

--
-- Dumping data for table `orders`
--


