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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=8574;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$T/56MQgUAAtul2hkxMzOml5ndta9iDXG3Czu3tkupX6Y642E0SZLx','user','ak_48dbc74e250512cf','2023-12-22 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$WjtFnEQ6ycHzDWqU6xRd5xT.GrBIGmF0XMyK3VndZlBopiNPIjUQ3','user','ak_db3bc97ccc40cb91','2023-12-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$rjeYFPEL8KCWkAbWSOWM.4FoqsmEsCt.VPDmZlgQHvGfZ77C4OOfB','admin','ak_5886dfa9a826dbb0','2023-08-05 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$WpKj/P7C/WovKmPPuhoCh0cNVcP6barfcg4CX2XyfrvIX5fmyNahl','user','ak_48c3368017dbd682','2023-11-27 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$NRB0QrycxyVb9IC1Bx9XQyg35Ei.w05hmn41Hr2j7wniaRF6KoDLI','user','ak_bcd2eff354282809','2023-05-13 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$7aiUX4DHR4YT7p5f97UugD6m93zQKrXaIcECvsFfJR1T5FQrZ3a3E','user','ak_75e4f77dd07bfcdb','2023-04-03 10:21:00',NULL);

