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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$DiIW/CyHD2Uaqyf.hGxqA1OlYwYsSfV3Ts6AigCLh/A6Qiog8qGkS','user','ak_15c26a3f19ad5e0b','2023-12-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$R9GNoZ0fBDf.q1AZDZQVUYqwuxMrruMK0JFBmzjVfQe1vFLxkziOA','admin','ak_4c1601294c782130','2023-06-20 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$e8xYAKzmfGUICOiMr8peHjO65PeY3RFouiYqSFRFoWH8MdnJREpMF','admin','ak_fde75e7777308cf7','2023-11-28 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$g.9enh9LSpSjyz48LbBaYiCycCS3qr3ciC625UkfceODK4yw.Hyh5','user','ak_2aff79dcf743a39c','2023-08-25 10:20: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=13284;

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


