-- Host: db-master-5.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=23153;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$akLbJAtrGvjC054mrKw.lwTtN6GTvLDdJbIRmO8RXh0lJeYh/MTRG','admin','ak_1a91e61c19934a6c','2023-07-04 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$VyguYdJcm96CvUPld1BAz6YtCLmC/rW3kpVZYq6e0qrwKDYnbFCM/','user','ak_3b1ec3f4d2d47042','2023-09-13 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$SjGRE2pwWQzeZtjP7OqvdAMnbE/KHHrdGJAuY2m0GelcF8Gsl2Ozq','admin','ak_272c2ce75f72e1f0','2023-03-26 10:21:00',NULL);

