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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Xr5xP2D3AG1m44H70y6UwkEFNYTUVylI770lFHTLCh1..PQF/f61a','user','ak_949f1ccea8eb51e4','2023-12-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$ReuMY7Zjv6YuFOHgF/xr4V.2d.qFjr9/8lMzklKJUkZz9x8Evp/5M','user','ak_c44b5dbbe6f9b7b4','2023-05-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$gDLA4rym4vgnohT6P93Afg8hnwZq97cN1dvZ6QU8r4GsknKKEGg7S','admin','ak_41f7068f4dcf0cb5','2023-02-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$fIZjuq9OVRNVonouMvvP9ddFobLPaenmN39LYwJFRU1UKdTcnvdFq','admin','ak_2597e5bc13427d92','2023-05-04 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$ii3msqS.Ib.HQWdD/5MmRWuJfTutsmZzwcJLqm1V8YA3zScA23czx','admin','ak_4d06a25b893b3cd8','2023-11-13 10:06:00',NULL);

