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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$muici2AZvL1L9UUk61XLvb7hu4mdB5KlaUo4M32xP5DzyWV.gSRAw','user','ak_2cb6bb85ed69653f','2023-04-11 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Yzinur9EF60IZLd1G0X7jnON377IsHXUZ85FI6MRn895JSwDPMBZx','admin','ak_06be31342aad9695','2023-01-10 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$AYZCbJ4xMLbAvPDfUd8Engacjdg119qja/o9XA9Pv0uiKKpTq0LE9','admin','ak_5ca9d280bc747b9d','2023-01-17 10:02: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=6071;

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


