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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$5hI6vwE1g/vpci7RHz1LMEWI6CahEO0LU75h4/Ab70Zlbtje2F1.u','user','ak_a2fcf98909588645','2023-09-16 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$6eVUeFzGSEIBertFp/sRQKx3luTU0MaS.5wr5.PZXRvp1Y4gp89TH','admin','ak_cf688782340b4165','2023-09-07 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$F.Q0iuG/ONf8ftzh5kMRIc3AGWhjS4r6uEv8Vh2U2po0K433J5YGX','user','ak_4c3fabfe4a4aacde','2023-11-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$NwGrV/vgruiyRBobsAXo45bSQAumYG3cFJHLi9xd7CdP4Zhi7Apf/','user','ak_a518e3f3a6ab9fba','2023-04-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$xcXe/F03OL0XW9L6OkLO6NU0kz84R2QBgDImwn90SHyGrA.RmEWZi','admin','ak_86c4d70539592ab0','2023-06-27 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$egYjI7ysnVc1Abqp62aoxiwN20PAcgsCjb1arVTrM5N8Pilk1/IsX','user','ak_b9b42e3c0a6c4f8f','2023-05-26 10:18: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=49248;

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


