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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$dHRkUHBKB0UvuZZEpNbA8kExI3/teiu.vtXmtfWCZ1feYhDwlF7/Y','user','ak_367f0ce3d1b22230','2023-02-27 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$OSAIg0BEWZWX9fExcUxIjE2oaEmZd2L81UvIYbKIKYnLJm9xr6ftZ','user','ak_a2c8688199a91ff4','2023-09-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$4gk9XpN8sUEWU9FR4fbyl8Adh/LPmnl7m1XRtVCphnOmJhmf1z/0/','user','ak_c71d9d6aef423a3d','2023-05-14 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Mo.KVL/s76a1eh0FxzYY9U0mFeeSuTOW46890M2g5rjxs/onBppTz','user','ak_0f5c3c3725c82b7e','2023-08-02 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=26421;

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


