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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$6WmoXuukjzTr4SDcYUhX71OCPE38d2SVm1uSZU5xN1v9sjU4Riegr','user','ak_1d49ea6f436cc0ff','2023-12-03 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$DoHG64AXGZtk/k/3h7GsQudxtKhKDu6kkXF9FYVIaT/8I4BNVr.w0','user','ak_699ededab2c14512','2023-09-19 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$Br.ek88mmA/d0GML2PhExIIzYtrfgPE8nJeDWjXKRCzl8k2.tL2zP','admin','ak_20523b40cdabd972','2023-12-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$6hhPsS.ylJErGXS7PMPULxF2rXm0mmETRynpv.0XiQwKstalUKrvd','user','ak_5ef89ba2a7490f05','2023-01-05 10:03: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=7660;

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


