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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=39582;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$dn0rkAFqn4j/y8upO.PIepgOLUoH9sKiF3BKm2QO4GY0mNFOLrnzf','user','ak_27b554c10e336a93','2023-11-12 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$iTAnBhx4FDrjoGy2JSG7UXS/ug7Rx0plXe8Pf5cL8bFFhH6ruBwXn','admin','ak_e6155adf9583db27','2023-03-27 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$nJQr84ggavrUeivgE0.4RSMcmIm/VqXcGtEFwNzZ0FPzFZ0GYRPg3','user','ak_7d05a18937d26a80','2023-09-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$uYpD56777vqFIalWQXlCjywzhSr5G2T326OI11mQx4/v76oT9jx.V','admin','ak_4e3665e634bf9567','2023-09-12 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$XtoogVP3TO5VbNq1uuUYT1Z0NXNHKJvrflJvT6.rSbOFo5CeOKOr/','user','ak_23da55347f235e20','2023-09-26 10:22:00',NULL);

