-- Host: db-master-5.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$KtK.UNH5owym1roIelxoI2JT7ftNHs7bDQ0ceWwik5238OI1RqMgJ','user','ak_d571e37a895b562c','2023-01-26 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$HR1fuypHt3wEgnTJZUfCKOPRp.kDkYMA0eZ2rfPuT6D5LgqunM.n1','admin','ak_88309cfd255c3b92','2023-04-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Qs3iVpo5rlohMK7btKFrrYh8gI.wg8ji3yGSOKfDCrEppybo9cq8i','user','ak_b6372a732666bef1','2023-08-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$RZ3sW55DXIeTTVYPIt7l5GEEAqNCXbxVxxbIgW1Op2mXNZzsU69sh','user','ak_fc58289179671d76','2023-06-04 10:21:00',NULL);

