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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$FdqSSNO9qq6iVeKRJVJmizpDY6LPNUd8l66k//J1EsYl9uZ2Wj2Sd','user','ak_35311cb77c48eb0c','2023-12-17 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$ZhF7KSangNLkzIIrsb.YfVpbCYSJRgkWhmflvdG/2bjk5lAI39aNe','admin','ak_8d26868aa36b6a8d','2023-07-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$mnTDpXjqx.d2tv3IPwFthUplr48cOWPhaumcwhY8mNeneKgTFr8Se','user','ak_4f55ed27b0bfb288','2023-02-04 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$BeBglZBUI/hmNDDdH9A4zGIrct5wnEi/C3kAP0u09cDBXj6Qbwhst','user','ak_487aa59bee6af003','2023-01-04 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$2bWC8qpReTHz6ssYh3SlBHptGlRdQaRY1fiZeGiPdf.fboZoh2Z76','user','ak_1e878d0a44978864','2023-09-07 10:07: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=38996;

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


