-- Host: db-master-3.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=44908;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$wHArvOVjIllA3BKfniOKjTbuv9Hzv5hWuoCXpz99IvGuJvuzxvC5h','admin','ak_6eb6059c0d4c60d5','2023-03-21 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$qlYMIOaYlnesmGsEB1YQsUjZEwUVuuQkKyidpQgzYUUpBIVgWLBD9','user','ak_879ada083f1a7380','2023-11-03 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$6j41U0fFpfivdE3a.8N1JWIK8A2QwR7qKuM1n4FfqQNC93QDwmLQk','user','ak_ca45b6848d6384c8','2023-02-04 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$yfYT1/ohMYudGIgw.TtNqP7Lu8LPmJf1F.OVytkMZRb3aXxCql3Yb','user','ak_0c3d2650338274d3','2023-05-23 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$LjhgGXz8sCtCRQ/pmqtPkWYK5SDqMwDh6DMHCwwlMe2QVIQJh5hZh','user','ak_977d5d68a732aa6a','2023-11-24 10:03: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=29037;

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


