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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$hjpukt4..87HjEuvG9c3lMKTMy8fgSt8.sLuJlUYdImCzLlc9Sm3b','user','ak_d05249d9c4fa8a16','2023-02-22 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$s2nCAo3Mfr7Xs/zMtjnNCB82VN2pdLNm9jHKKMJc18.7/Q4IEp3E/','user','ak_18d694b03a5e1ce9','2023-10-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$WrDW92v6t95md6Vc56yJAjdvd57rjXpdsKZholQp5hJ6gduoN50H6','user','ak_2befb8f2c96f6467','2023-10-26 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$JaBUTXlbF1MHDCGzWHf7yW34VHLuKiZxBwP9S9ONspPbKmaLwHY4j','user','ak_808121d32e6d2db1','2023-10-05 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$rQz3yR8NF3bSHctMDk9l3pUDg6SE/mEuTJ2b8VUW4yXuw3B8ox9lP','user','ak_4f69d3f047c57f3c','2023-01-21 10:21: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=40229;

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


