-- Host: db-master-5.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=13173;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$8P0d2ggoZ7n0a36HGbgVdjQTrl4f/jNp341fR/WCH.4OAuH8POcsU','user','ak_0ae4d9bad8c3e59c','2023-03-03 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$zeqD1HzJQZUur04T.ncjW15DJPpOlTQeEBTiErBnEA9MoKSnIeq06','user','ak_7af7ae35fad3b99a','2023-09-04 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$CaTdWsgvQ2BujmyePUQdGZAxXdsIi.8aDxhqvJoNBPQ0cMY/6udZB','admin','ak_8d68d74df6d165f0','2023-09-26 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$cJbNWp1zjSLRIHqBcGJpm8eOOuwvVq1LRadK9Xj1zs39M77PI96b.','admin','ak_81c8b567ac213363','2023-02-10 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$KbZ7QJmfOZWlGLuxevHtHkuxZY.yiTjA0ZiGXCrCmJov/0rEfD8P1','user','ak_bb7f55df77a8d4c1','2023-07-28 10:23:00',NULL);

