-- Host: db-master-3.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=42241;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$PpORNkedjCGiz8V/D6KcZyMEraYk9t0pzVuomHSIj7bQvaEAdw7qW','admin','ak_e510a8925fb15e92','2023-06-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$6LR9AlY0a/OQ09Ve/qlbCTf83VF/KhVzrh/sXc4LJGWQql2ehc2Dv','admin','ak_468f76ddad6ec65d','2023-11-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$lmz4s512tkAupVJfSdwTw8BngPymjsoPFiJs0.P9lIJyBfhWv06Y.','user','ak_482c00ab11d870ba','2023-12-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$EvkWddOU5pyUU3ClzgpM.6DssAgqcqwnOjc62ylTE4/aYKKv8LwcF','user','ak_1b6c2eda13b258c8','2023-05-17 10:02: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=36816;

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


