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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$pVvERTsXkZmlgvFKXcd56lwDb8rrZyyOgRRfoOlRQ32itiBoSBPsE','user','ak_7ac1202b54a3a429','2023-12-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$z3ejImHKHI3vMGE3dOHeyrWwwTzFQYA2oo2Ih89.UgoqSwcQtC9rI','admin','ak_13d08bdfc47e8ab1','2023-02-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$jAZNcNzknSS5h5scHHFlZlgPk/PFH8AKDGq.W.QZfiLTP6fke54oC','user','ak_440972a6ab040966','2023-12-06 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$c4M.xwYlSNK4sWLhdFSYTcN8dEwPMLZSP4eYXSzaxOdoAemo.wDi.','user','ak_43830b03a96dce15','2023-02-22 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$U7fZnEWC4XQk1xAth.jbNa/REJ.rjzfjvpRytT8Of0yi/675A712j','admin','ak_78e2ef7784dd15b5','2023-05-06 10:15:00',NULL);

