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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$E0sLos2tisrRTa1z9MlYEVY1NEpyfHctA9ZJO/YtaiqaRX/viTBEx','user','ak_c5849a703e554d93','2023-03-14 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Zj./trqAFPatRSV6eR.XNHE/SmlEUTEPG3uf1exEFogPYo05YwWHH','user','ak_d9aa8d89a5a7fc7c','2023-07-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$03CyYCLZO20mtJN4SPO9whS0atRwZOy1r6.fjnBP.AV/SBupjLJK0','user','ak_82a15a96c2a0a5d8','2023-06-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$9ZeyrAFLQU.jb.Ash4vwURmPwYI0SIcxKy8dDdXJYShijwJnfXSoU','user','ak_b1699852cbb3b92d','2023-01-19 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$c3uPy7Zt6KBYV78Rd8ReaYyXjLDaMS0GOc9rIMUJqhPZ8PCtn1sE1','user','ak_ac410ce4dec42f94','2023-10-06 10:03: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=42596;

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


