-- Host: db-master-9.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=10185;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$UwMm5SKNsa3H21xn7qmL8q1UAmE0azD5k4CVux5YM7uWfUKGM.KgX','user','ak_9d18e2f6988eba55','2023-11-24 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$9ENY59EwRS20t04Jekm31r20gh9YSUS32c2QZPywl3wxq.Mkyu6oc','user','ak_2400b98b811857f6','2023-03-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$X6crR7Qi8Jh/EDpcNYzME2oqjolqb2q01d.AEfyb2NyUJ4Rsr1NuH','admin','ak_1b94dd94a39de408','2023-09-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$a4Df6b4r.AQZCEFGjJl1Z3w4FaEmSD3Q0Hrsa1jGvDBwOppBZ9ief','user','ak_51408b91ceb872ac','2023-12-25 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$Vlg8YNV3kPXsbxg1P74IM9akNoo1HDizvmxY63BAEyRwwJnnORzDB','user','ak_900999bd44a1c666','2023-03-11 10:17: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=9833;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=30516;

--
-- Dumping data for table `products`
--


