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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$y/jV2KD7SVwCGj8dKkvfg.a5XlQhIKzTHe0iXepsJOVc3gVZ92NzA','user','ak_eda176ff88b6c967','2023-08-04 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$baKFid.jmWBIwfIBFaV3RQskerU6GAu6Ez9E6YNGVQiBAqQRaNsaz','user','ak_6d0e74e321080138','2023-12-23 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$y/5GVhA9OR6d8HWwqwKKEaZcMmu06.zDvmaPFPujWS5spxLjGcn7x','admin','ak_f2aadca53f01d718','2023-07-12 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$IWiW8K01k2vLSHHi4m/xHiggb7MIA5eI4GPlxg1Vx4zdhX7Z9Pzd4','admin','ak_9c1f879a2472af57','2023-06-14 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$aiOS2GqsUyIxzI5cRH5yxwjeaT0GmlogvlIGJWKoDWvVl/TzFVbDq','user','ak_9923d6b9c7371066','2023-06-15 10:14: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=31276;

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


