-- Host: db-master-1.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=39481;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$C44IwOPhNE8j95ydnlpfNFyrWb07F4QECHC8GkOC7W36tjpBtUuRF','user','ak_0f91be070996f440','2023-12-24 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$pOV9jyQlPfv7N9wLhxBXvOopTvmItfz..2jGN1o3y5MP3hvpHfoT.','user','ak_ce59f36d809d9af3','2023-02-09 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$nm15q4ULe3WkfY3SLWt4LZJ5uInsGgIWkN/Raca0f/ZOqSuZLDUJY','user','ak_f30ecb41ba61ccca','2023-11-08 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$h1jYNQ5saP8zsfOqHdRiVdPmtyJPke1p3FYBUUvMCRegH.1tg5TC9','user','ak_ebbf760dc476e71c','2023-01-11 10:05:00',NULL);

