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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$CD53kSbuQJ.gHj1yCkicXeflgSC3Ybm.5tZl.UUl0A7jTq3xQnRIU','user','ak_e49fc535a50ecca9','2023-08-17 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$vLiX5VucjAGc7nrGDjCWo1fLWlM7cA3wEMVrNjx0WNzwLUyjcDevu','admin','ak_4438ccb46c505828','2023-08-08 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$pwTRS6T7qDghKVS8x4771JOYP7odnaVmSkuK2CZphoqoDsT8ohqkJ','user','ak_d506153d902db293','2023-02-07 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$N7h5cLC0wK5H6yVfOnngwrufBo5CRzs07RXHiJZXipkzLZcT6qRdC','user','ak_8dcedf62fa2f6d3e','2023-06-01 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$vmFmpsWrxtR6u07mh6Wi558jZWAS3Mpe1xTwjoGVj.XoTfILXzUFy','user','ak_8c0344e3e0989f3e','2023-02-23 10:04: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=43889;

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


