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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$N7OBnSS0R/eu1c.qoGM13xJXxbXCbYeYpW1A/VYkF340MNPdt1PPx','admin','ak_9843eeca5cc0ec56','2023-07-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$v0811rovhtKs9yyhhwmuoOf4vaRDs69mXovynPljy7TRBpxDLVXu3','admin','ak_b6cb60ffb4f315d9','2023-09-01 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$wB8MbLH5.P3meH9v4hgoTyFizDcjKq24LKWJd18DEnBz1OyySyQiE','user','ak_df125c0f835f6dbd','2023-04-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Umi/jeU0/5prx3oBW3ASThJC2E7.DGw/CSafU6rL/W5V4VhGSAkcM','admin','ak_78beeff974a39eb0','2023-05-20 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$rv1nLg89VzoBcgiamAd9IHDQknuCyYWjE2pHFYb9cTkifaGD2ANTw','user','ak_ea78928f8e750ffa','2023-06-03 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$mjCB/q25n0dWRsfvnY6KObwidXHVD6UUYpnjRNri/bhLz5UXkgATt','user','ak_fd0a874b445f1593','2023-04-01 10:04: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=26429;

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


