-- Host: db-master-6.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=34036;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$lUwQohwXngZWr2MQwxugfv4i2wOxZ8I085hEV7i88jhxcYiE7yhKL','user','ak_5b6a237646804a4d','2023-01-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Cs1FhuZnPTgRpK/Wo3SoFdsXJJCnthf8U8QCccVLqE1aT2O57UcbI','user','ak_d0ea66cd6c8a2c7a','2023-02-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$Lme77J/PiifWJU4iHNEATc6YnYncJ1RjV/PT9fSIyEXnFFwc93lvK','admin','ak_d5af7ab9d8fbd5bf','2023-12-16 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$bsUqAXifFEWG9TQqKd/qccm.YJTKiea66t5pteR1uxT6I78ZPRw6w','admin','ak_fbed54447b193eb7','2023-02-17 10:04:00',NULL);

