-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$KiPs8FKOF5zZLNq534bVxQL7bCeNcIKICJQNeayJ8sLBt/6uhc53b','user','ak_962b6855b3a0643d','2023-07-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$qqs8ui8Hje0lurbLHNlWE.bwNjTSaI.Q/583ras6WqxFoCmSvVUl5','user','ak_60d8f17ec0533970','2023-12-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$SYhWuPqUgtc.l/9nr7CY.ork2bzjvjr.nZGLpxtvAmleB6ASXZvSS','user','ak_aff496ae74fd245f','2023-11-27 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$1mxAKNLNgGSfFxnZj2q0.hebaPlsvySg/rE0wBAwJgBSnaoTDudF5','user','ak_d115665157e52f41','2023-07-24 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Dqj2yu.1PYcBuOa8oMkk0LPV8cnba7eN7rJxV9PgUI.AaUGOIyFKc','admin','ak_d4583c9433512fdf','2023-04-21 10:18: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=17622;

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


