-- Host: db-master-9.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=42658;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$fIP7nl3X8Ikvcds9Xxa8YsSHn2HjuaclW7gIb07zr0sZqQXAWo1lR','user','ak_382bbe12af51fc29','2023-02-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$dYNXL45GrxDbmjYrEMf8axO3Mz7fpuQ/H325ZyM5LYEYV8XcuXfQ.','admin','ak_1b387f4029aff029','2023-09-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$ekiaHauLhk3A5ihd3JAMNfxfUmCALZAMfvbEMzDCSNPC8MchqgAll','user','ak_66ab5d46c266a4fc','2023-09-25 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$10BHuMkFZBYUUgXXcv00Ju0L0ZIVoOUfTpv7d2PNLCnZvtCMsHvE9','admin','ak_bed67b8e9514c3a0','2023-07-10 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$LspYnUg454PNwXN3U4.FXx1GUOBIc/B9NrXfX42SdPoSBywq72SR3','admin','ak_2a55d28fa8a64c12','2023-02-05 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$2VfG7u8fLyY1hMP35WzW11t8eYcS8WNFqOlYp2LDJABStoZhKIJqM','admin','ak_e52760cb3b9bad9f','2023-06-27 10:20:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=26040;

--
-- Dumping data for table `products`
--


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

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


