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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$.Eh9c8rSVv6WYQSxUk3NWpJR0XMlFIsXco2O1Vn1v2Nd0qqdvPR9B','admin','ak_ccf92021669ccca5','2023-10-11 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$r6Lrl.L7wTk2SQG1PUKeTWZINP.pyZO.ZK9I.Ux2RVR9SDxnw29uv','user','ak_438fab49b2a340cd','2023-08-11 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$h3ZOpHgb9xr/dzn//0ZqHjDhmt5t1Z.vkCFL2dYqZA8oCM6dfrqJt','user','ak_e0d6975e78c78e1c','2023-12-04 10:15: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=40897;

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


