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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$T0IwLNAX31Ih7rpkdw/mA3PriyFc10tX5nCTGR3k2UYpHm/var1xJ','admin','ak_1ebe2fcc8d005445','2023-07-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$tEU6R9rvgD8aTR2RE.yPmOi9/w3w5t87cT12Rbaco/O9ttkTRheaL','admin','ak_228266b7379ace86','2023-09-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Faf5x24SENl5EEHUbHygYKCGKXi34hNqtUidTxSfA39JcqFW/02ug','user','ak_e2add8fe033421bc','2023-12-10 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$pU/WHVZJEJyBYYCV6utThAbHniF6UY0il6b1b36hrzIUkvHnz5zMx','admin','ak_11e70b343051bc91','2023-01-25 10:10: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=28852;

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


