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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$FIxXMrY409LwXHU2itjNLZV1NdlV81u6.8YYCBB9k1VKzvbiA58wo','user','ak_1d3759d6be3b774c','2023-04-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$MhlESEjlCWuuHYQKCSV0zKbjjDZxCondRedSbBo9Eqx0e1jPaVBpJ','user','ak_db0b8eb56a5736e3','2023-01-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$ow0VYfxXLfl7mEWdPLS9jCBrNCMf/GKNhPeqYOVU3NXsEjY58gGqY','user','ak_4590b844d99204a3','2023-08-20 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$wGxjIKCsrBfc5OzZj6HKXXxLK1qnomOwf2l8JCM7QMzjVI2QhTOix','user','ak_7c589a36487e3273','2023-01-17 10:02:00',NULL);

