-- Host: db-master-2.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=32350;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$DhlVTx55ZPZiso0FkLvU1v106gVSKIa4aRLKy/j4I0YChiTa0.wD0','user','ak_6cf0d90612b7e97a','2023-10-12 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$I/rv5ckFf1ERecul58JswuDQEx7cihLILJEuC36s4LTIuEccHwxnu','admin','ak_50dff996f06839e5','2023-08-11 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$82YbdrCwb8orSwfNyM4PhWmBj/mtWhkHI/E.GPQ6jqtKJlssTPmpi','user','ak_b965573f7fb1af05','2023-02-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$ZIcPvFMnn31zuGuAzSR7irex2/yIoFJpkbLX4iJeg3mHOIjhVQ/Ee','user','ak_f52154063adfe118','2023-11-23 10:13:00',NULL);

