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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$waYnxKRiRnmvrE3j2Xwu5u4f3ACHS3Gm7ww5w7/Vf1cgeOyntXRxJ','admin','ak_913332a3cd968883','2023-05-08 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$hedMvzk41bpl/O2PLDyq6E41xiTUOmLm5QrziZzpXAVJQipVmVIP0','user','ak_2335df5a1db7ace5','2023-09-19 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Spsjn7iWpoYm7IU/haDWRLlXPfMUPwh.1l0CaInnhzO5o2fF8/0z4','admin','ak_cbfb5b3f3ff2bca5','2023-05-26 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$3qJJkkgfc82IDJL4c3OckXVbBRWKo9NdmISmfEUIduUGibjRd0GmP','user','ak_931944cd67dff4d8','2023-09-11 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$WnDThg/kxU7742dkhAwzbzxstAZXvoJzGSPHP8ID6WoE/caRMIfc0','admin','ak_aded4a2c72603db5','2023-09-16 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=49703;

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


