-- Host: db-master-6.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$d48gxgdZktOn36iHsF1fgTbeNJjdElGWo4wPIkymvqHBEgoyj7ASE','admin','ak_126eb805a2570a49','2023-11-18 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$NlX4jSzM4fhS4Q5TSw4uLhJN7g0C3F7mqtQ63nU2MRuKS.j2WUCwh','user','ak_b0c34b9b4a091802','2023-11-15 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$JXemQbcg5af6VEkZOsGXAeOMIEwJ58ps/I0scJrMY2elJcxAsEc9L','admin','ak_af1f138b76caabaf','2023-04-01 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$9wmCzMuWBj.j79nNygNe.y/ne5wiSc35/urfBLErTcbmbNTtZgzLQ','user','ak_d46852a101bccda3','2023-07-15 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$f4iZgW9aAL0xT9mx5nGyfyqZJZRdAEaqqaKBGnm103AOUObHIWpfW','admin','ak_c6c1c623cef88434','2023-08-01 10:15: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=14491;

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


