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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$MVkIxEF8EEWpEA201mcNJzU05E/BoxLcULfniJd6OSRwMJn0YaSiv','user','ak_b367387bdba5e23d','2023-04-23 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$e7MGyWmfjyB9y43ruTsK/3hGBDY5g2A6hlr4p2zCpvNrBUKJytBzN','user','ak_797de6418d5e6d05','2023-01-27 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$Wa8wF5faOymrnyLwl3bh.0Z5WWL6uE93MVJulGjCmfkp/cJIoPGRw','user','ak_df7a812b045e3d3a','2023-09-10 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$fzHsHJSkG0dh0V4DT4RbSHJIL4JcdOk76vLdZOEAji9q1Re.Q0zrY','admin','ak_ebf07df5d3d2b364','2023-03-21 10:08:00',NULL);

