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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$W4cHRL3hx7aUa5eBor7UR9sELpVeSXpkDRI2tmcNs6joWIRC9rnh6','admin','ak_a14a546ffa715970','2023-10-03 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Azerl0ZhVpef5Zioq/41ouLD.8r5a/yOEm.c5b6RVadeYi2Xxn5Dx','user','ak_a46179cee6e4db78','2023-05-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$FdRaMBCPE14YS5xVxFWfxHcSAkCGqx3FO60XbKxGLGk8VuFvzZ3uj','user','ak_0fa666dd0646342b','2023-01-05 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$Lbme6/Wy3EuyBU9iqq5R.OTQfIBrVeAM8f./GOzGsSIrTLGsXLYC9','admin','ak_f4c2209c382158ee','2023-01-27 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$mCm0.x01yU0914CrieLflbe2JEMsOylO8XuSRzQvAqnQLRiHub2kI','admin','ak_afba8a98c2bec245','2023-04-09 10:11:00',NULL);

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

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


