-- Host: db-master-0.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=12788;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$i8R3V7i7ORPdbdAASzydHcGOkJF2qxaaZC7LVUc.a9dhowDRC8RSJ','user','ak_a21be98bc82805a6','2023-05-03 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$xESyRU6mF0d4gvZtP4exirMP0KlLDhKRv8C5lO.N4nT7IAPlZVqO6','admin','ak_0a849ba24a837326','2023-02-16 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$b3nRGaPb3SqVndc88JB7Lx/F./ukpLEI/xr4C/DnfuErCzRD./W77','user','ak_67d256287a9c0a1d','2023-05-28 10:13:00',NULL);

