-- Host: db-master-3.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$IraZZ7aXiKaKRs4GMAxscOQOsovtJ0z2VIJT6kP8SYVvenfoqbL3u','user','ak_76eddee4788cf6c7','2023-01-13 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$qlY7RhG5vXEoPwiX.x4kyhgrlxqPYZdbhwcjeefJlVHeVjCdUR3mg','user','ak_dd96ff44ca17b41b','2023-01-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$7lymTvvGyCqy2i6F8Y4Wy/5a5QEn.LndsxT8igdHb.s17j2gLxl5p','user','ak_d253efef4cd58bfd','2023-08-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$IN5MSWPHRifeIX4fZm8J6Xs6qh2f5dc9DTY4aUVvuQVZBfFlaVVWh','user','ak_f5833870837fe911','2023-05-15 10:00:00',NULL);

