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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$6Q2zdhv9sr15ssC8ut671tXOJABxcsJEffxJZwXwt6Wa2kOwHD8An','user','ak_9475914bc1fa1bad','2023-12-26 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$w2elRqe.y14qycfa7dqYpQ4E8c7FVKKryU0UnQVOGoCc8SOTwO7fn','user','ak_bfc84d1114fe2865','2023-05-24 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$WSH10roet1xcCOE3T.xQCQw.BymxP0NsGaYERJH..Jy7wbpApVmXy','user','ak_61611d2cc0a266a6','2023-04-25 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$T16D8wl97UngH6gdqwiDZuqEoJA2q5AtuC.ZqGoVEwVC.goLL5dAH','user','ak_ca7b7c830aeb8a98','2023-04-03 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$OPyQSntEGo5L9gUxoF6JwAvF/QwBETVL0BDE8SjiZLQ/Jjq5NSLDG','admin','ak_f0bcd79c146be2bf','2023-12-17 10:16: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=14698;

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


