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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$YMgf2Je84QUc1Yl.VqgD2cPxY8obaI4V3lk7GwtUQyAetzptJ0Ney','user','ak_005d9912090ee441','2023-02-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$aOqhrqcNw9tdJgFOPmWVKykAYZtjvJIXRvo.OWJADAyEoBaXoVShF','user','ak_c1f6cb0acae13a51','2023-02-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$PAt/Ba4WMle1SfsqYLVFMxKH32Ufsi6GUTWsRGj.ZU1c9dn0b2C38','user','ak_6082123213988e05','2023-12-27 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$41CLFXTvvP.FZU4fO6XOZzGhMdWbCjeWdwggIkGG0zBlHBvuOJbgy','user','ak_c6c9790433853da6','2023-08-08 10:06:00',NULL);

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

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


