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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$NINwcE4uyQmZCR2hsxcCnllrCnH40OzdBAEJwu/F1r49nNQoK/5Ey','user','ak_c58914e09f7d71a9','2023-07-02 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$uLqxHdG67Pow0tASbnsWSTpQK32pjOZXEyWGSjMc600cY596HhnuN','admin','ak_2bccb237cc99c2e7','2023-07-26 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ZZLgWvG9fKFCkVW/Ddp4HdsdBpMhLfzcH6MSxA.vsSv1A7OXX8A9n','user','ak_57056d720ceaa57e','2023-10-09 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$jid/jyQcvOBD1IdT.n/kMTBaxWgjwF3tB4VZ/OzP04hWFZFIJyKWh','user','ak_a6e60b1bd9d3f049','2023-03-07 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$2mzAlbke5Glr6sYJ7d08vaq4npEaTnc9HFWnCQ3j13pfmo71WsFSc','admin','ak_f6413f726c28f7ba','2023-12-27 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$KMYuFnSkPG3UH3a8j9wLHfc/gLBlb7EIQ8nrzbluVi23C2nHSaTrh','admin','ak_c89895d619d49c2d','2023-07-06 10:20: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=47296;

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


