-- Host: db-master-1.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=26296;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$pqXTREQhGdxeFoXo4mAxM6FAN85kb0oie1H1Me0Iib6PmNQjkOrZx','user','ak_2a9bb5af5adbc28d','2023-06-27 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$OWN9DjRfrZeX4PHktYbPQPOS9KnjkKNluHimNkj1Eqvy6ymRXBcMe','user','ak_dff23c5e3c439e7d','2023-08-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$w1o0p8JPFn3u89UDbUpb.BuoCTGaMc0iluAdI.W6ZzVg0EA8004Zu','user','ak_c4fe45cdf0327d54','2023-11-09 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$v.jSqx7K3dfTC.ixEK/6IzkH6zNYDfj52SkJXNNp8UGs6NZAeLrSs','user','ak_011286315ab3cfa4','2023-01-18 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$5JEJyswIUpS7vjOnTUxHctDwHNJ29UP6pYJ.uW261LBqwXwJW9Zm.','admin','ak_9757e1f763d68901','2023-02-12 10:03:00',NULL);

