-- Host: db-master-8.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=42001;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$QxzM4Asg3oinkVHZhjN.WA64CBcm3jMwpmi5eThe85pG.zzWnQNnB','admin','ak_fec6e6fec0798f5d','2023-07-23 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$3KD/eYsZjTQ5Xj/APr5wjmXYbBLZeLFKGtOov7Ii28Yen27mB.yK5','user','ak_bc55a5d4407883cc','2023-12-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$iUMYfzRdfnSQ6UVJHjlFcaM5sffOeV9/RB.jJlIg9pB6jOJOod67a','admin','ak_1f599d387195840b','2023-04-12 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$ggu9neiy7xZmXoaOQJfWU7ut4cscVsEL9pOcTvLQiklUbfI4EkqQU','admin','ak_12cb22a9d6ac20b3','2023-04-17 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$ZVc4PPFkGMNUqWkNpDX4MqEWnCG6eMQegjIzIME1RyOWwfFvwG8ki','admin','ak_1639a00e30bed83c','2023-01-18 10:14:00',NULL);

