-- Host: db-master-2.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=3932;

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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$P9IVjzYeR21cX9sb2z.Qx8wGjxx0afMXmVyanGiUpms8Yx3kZyfYG','user','ak_9e9abfdc7fdaba26','2023-01-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$YBfH/fGWUs/OWA5S7G0nxEhVxkkmj9nWH.DnJiRy2epahbPLYogIy','user','ak_3f13996640c62970','2023-01-24 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$rRRw3PWqcEMQQJwFrBgw2JSVx871BbHkjnxjuB7QW4E0TA8j8312b','admin','ak_79799807cbf0f716','2023-06-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$17Lx2YTWxzVHGpGO3s0OxxdvrlcfG4/gW/yKvVQan5kC5lYD28Wb7','user','ak_a7c3bdfa5de5398d','2023-03-18 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$AgsTLB79j7BsS0IiJ4F2LeHR/Tetx4kUDSqkTPDiJpghsscOMwahI','admin','ak_a676e32e10d427fe','2023-01-17 10:03:00',NULL);

