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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$mUFjzHWdvftD2sHm1Ky.J9QvwQhecDs9yaYgEq4eKX2eiWeKpM0wA','user','ak_07a38d7cc6bb6df4','2023-01-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$JbVxeynWp.6CnoP4GeRyQtzCMZqXvlvk2wfCdI8Ln2q.h32af3QJy','user','ak_a8e7438cd0ff8269','2023-01-06 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$asniTYLWTkFmcgzR84mYVzJhNcWYBrUVjxk7VXNW7fn162SYEtjG7','user','ak_f7346ba23c8a4ac8','2023-11-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$3hKG8UYe4CAP6dvn7D.mhnnGryjjZeskVWiiXAuxj/2d5zxz1nYl1','user','ak_41adc3f0ce50b3ad','2023-06-25 10:21: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=48650;

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


