-- Host: db-master-6.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$eB6mDHfzm6431YHC1C4jjoZXsK41viPH7MxpkHjqx9pX.htmGj2Aj','admin','ak_2ff5340c16da0340','2023-01-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$dPthdvXmk1mdi3pVu7iiZotb/wGLvwEVD2qHyQT7nafruJGLmusoT','admin','ak_877d173784638c7f','2023-08-28 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$ZTpnb7sqD8RqMJQA9eTpzISju9pFgMfv7Evypxlzp8z7Zf8Vjd1mZ','admin','ak_f0294a49f722b31d','2023-10-27 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$2VEg24I8NQ6Iy9IH9JcBsKwdlR8RDduqMLMJCJLPLMwWPvYgtkX67','user','ak_2f3dafed8d9391e1','2023-02-18 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$6LPGGiq6rN86ySm7MVrf.tLmNzBJEPF7FVsmXZ1/6AXCmKpbdOtyj','user','ak_0f4f1305b91b8947','2023-11-27 10:04:00',NULL);

