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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$SeH4/DKiLu0m7ukDWQe9iVIYxGvid/zl4hDA0LV483lXSezPehdu8','admin','ak_b4dd7f6b7c01729d','2023-03-10 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$yRXv6Y.TGcoJtdYnDkHumwt8hbUR3jt6KZh/h0NULOGhqr34l5YFD','admin','ak_2ffff22a40ff55e6','2023-12-01 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$3cKUZN5LGkL9KHrSyB7oriYdwsdGdKnrJ9pdegtxKCm6v9yoiJyN5','admin','ak_fffcbf9b143fc480','2023-12-21 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$erOESjXu.lCMcu4GNA8hQNCT01XEPk3nD7nxmSCWB6Z1tm9A7P1le','user','ak_9fc450fa6b986933','2023-07-05 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$utWMGXQdIHDZlXdV3G4D420i5MnazCT9dcJ6UcYuJnPsGzeZ2qiPb','user','ak_34b00501fc4a6ceb','2023-08-27 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$/KHC3T8tqgHbutNEXhnXkjZysTXl2e.pIjAKO82/GEUVHjuehecXR','admin','ak_e72c6954ef277d5f','2023-08-05 10:10:00',NULL);

