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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$6bjJG3JnvQZTy.zQjG7HinmRqIG4MWnUqC3.l0hBWkq1FuZjLZcZp','admin','ak_cc4345047dace420','2023-09-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$9fupfBK0ud9ULoIjnY/GS8bbEQ9YD9srLHjnwxTTySuDU0jAoIJLZ','user','ak_b16e295c3e3f9a66','2023-12-14 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$AK30DUf3akvhoVx7WG10BdA3U6A6UZ3.GtgHS5jUVTRj0JPAuMuor','user','ak_19f5929239a219fa','2023-12-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$K.l.q1NKph4EVBp3YJ07Qem5TVSLd7gFmVkRSdPfmPlRGVvxfE.Y8','user','ak_253b16d881684518','2023-04-02 10:02: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=43325;

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


