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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$mKV2/LU1X/3V0NaySWFnPdJOEQhZog.Ko16anr6FW06p77bM3OzqP','user','ak_746d943b589fd067','2023-03-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$CJMghxM941HAUrKDEOxwJjQnu4vudSaVHUt8LpREA09NCFlBFCP5f','user','ak_3a0d9d4e62be2191','2023-01-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$jgqo8nDK9NxpaD04HKvZzylxqsqSLnc81UStRRcmInsEF3saG1kPJ','user','ak_ecfea9ab32c94141','2023-09-20 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$IEAYbo4iBoGuyDMJdGpGw5bcIsuR2QdTc8nbmzX1g/Frn4qpEvEUK','admin','ak_8ff2755f78c1a6c4','2023-03-05 10:10:00',NULL);

