-- Host: db-master-6.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=50066;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$WfWAC3tFru0a72fNzdRx3nukXFwO3acO4eE.AanZDn2VuJkUZltyI','admin','ak_7560e56f2ec864d8','2023-07-02 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$IBEG1nKFdh.Rq4/xBDR.juYhzzwD0Y611k8e2Jpr/y9nSIZtyLh4E','admin','ak_25f1179d27cbe920','2023-09-24 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$CU25kQ5rXznYpyrtDMTyvMR93yPVg/J23MpLxOBE8h/aJq7.k/Xei','user','ak_a49733df0118d28c','2023-01-03 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$c6cED5X7yEvbeE6xiQfPfC9n2MaPFkWERGjj.ptO/J/57XqeeAw8V','user','ak_8fef93643513d352','2023-05-01 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$rLIRmOYxiufz8al6L.D2W1dHqgHhkSeoGjyrC8iufxQrMp7c2bu8z','user','ak_d5582babcadfc56e','2023-12-23 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$GV3MzTlBCWxOr/t5OtEOSSXvLXIWBHmfvG7nHs06Sdud3Sf.OWDpZ','user','ak_df7503354c8ae087','2023-09-04 10:23:00',NULL);

