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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$3.j6xR/cfnhaXmTqjZbgGi3mOqcJsgu17f0onhNq/TVcKOYi6QOow','user','ak_c091677fe8124507','2023-03-25 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$KUsVvYhe4t7OzYC32d4o86tClgCnIma3aCcHR0zSUQBiO03et/OvZ','user','ak_9d6cf7c49d62d301','2023-08-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$l.bQ7n2VCQZgoU11KwnTCJZvy.hTfSWyJhORYVHmtyAE2tR40B2mA','admin','ak_03a5b8d2f92f24eb','2023-12-17 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$5Qqqiz.fbeL6DM3NuVs6dF/.HvbEx0Y2EfVY8PN39Lz1uYdVetYXl','user','ak_058a1b3ff19afe9e','2023-04-18 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$zcMBaDdzOwllFXdNXfMYyDueEWUULvAb.H61B57LV9T7FQ/13n992','admin','ak_c221705e34bad5f7','2023-08-03 10:02:00',NULL);

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

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


