-- Host: db-master-4.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=50322;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$0WjFRT/yXaDQdqxTP1Xy97KF.a7IYJzS.Dr16kM5/j/FzLVWjTA3s','user','ak_a261cc999e55c118','2023-09-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$1UiVGmd6O6ZGWMdTd1EZifzTkSP7XidF3QwUgn.VkGBtmibC.S7lN','user','ak_2510dc5196712521','2023-11-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$yZgiuoo5pD1upNOgbSRs.OjcrVvehrBfCt5zKNiKMZfMh6PHD1DEP','user','ak_715e71893f5303d5','2023-11-18 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$rc3telMgoSkV/AE7/adsKi6JlTM1X0fwrIstBMxo5RNRLzJuV28f/','admin','ak_8f2808cb9413ba71','2023-10-21 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$/ftTa9ZGxLtklkBL9ZBQqaAqViWxkhvP7c5mVm0VFp27BGUTXmkCw','user','ak_7862621bc3c7c9e3','2023-08-20 10:16: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=17620;

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


