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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$erXawe9dpzO55ru.aCzA1jAgjrI2M.jyu04B6fI0/qZR3E5gQO2Km','user','ak_455c736df6895397','2023-08-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$ZYRc/3OKvaDAnp5djXBlYC3r8QHax8iOTaLPbbHQmbBUxcl9Wovrs','admin','ak_147c072d8bb3e380','2023-10-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$bj8POnNA69k5L/.KpasgOGLeR.PWrBeis96IWl/FQPKR0a25KsAhG','user','ak_22b9d0b231b89b95','2023-01-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$E0cYveZyP9Ygo9I6CUh1cMgqfYeTknhWVZLDjrHjIcd4FoKDk.Awo','user','ak_2a12c0a151ad5ba4','2023-06-27 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$Zo9/u3B2/L2F6JsMYyuEh/hjwPqcNEyzPEPYTCnZFVVnkDfM9pKfC','user','ak_443df44ba2da4d74','2023-10-13 10:02:00',NULL);

