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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$L1TOaFUVyNCu.fna6I9xxIbbp3iwCIuZM22sfggXqcX2FFdm0ArBc','user','ak_abd9258623e922e1','2023-01-14 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$GCkFhQaTIMZBn90JeZuuwk11k7uIZwQIxElKmZXUZ/qLryLSdeqtm','admin','ak_19bef44e25cabd97','2023-11-01 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$b0uzrrJp2aWUgfXHAXpTKgbEZzWnKU2KEPOmzOWWdwkCRDxgrPjjK','user','ak_a414ea310b650d0e','2023-06-14 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Z29DYLjFkWyi9qwe7VooCOzDO9xiFjjAIvYXLU29nyms4r6zkGvNb','admin','ak_e0e3e59d2ed83fe3','2023-07-05 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$dYS0VkR.k.rsk9Ca1UMpuouqtINRArYxRWoUHi.tnoHxLg7G863Hr','user','ak_18c28a3b1cca1345','2023-07-15 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$0XK8ch3z4Q7qmlhKTtOcZ/RcIzYnOKZUtjrpAj67zpCsT.5NqVcAv','user','ak_01c8472a0cbb2893','2023-08-18 10:20:00',NULL);

