-- Host: db-master-1.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=8850;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Fide1qxynd2VE.rt8G9przjOifLx19xeL2I6Q.tgIKkJLqGAa/kzL','user','ak_1b73df61609a5347','2023-09-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$iW7.KbqyE4ZX.dULKNietCYnnSOf.5IV3KFUAe8jdybxVDbkJIrbZ','user','ak_e81ebb759293adef','2023-02-10 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$.xkySsjZUe1UjeTHcaitGdQ2/ZS0qe8XspbR6jsKcltVyiBPYLA0U','user','ak_9f337928d686b9f1','2023-08-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$dvmLdpP7uJoTHyUUeqke29Z5Bs/8Rt49qHL1.wvYg8jbyi7wI3rZr','user','ak_6ce97711e9afd728','2023-01-20 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$46zxT1A4ZSF5KyzmaVB5vJFrXaEDFStQ9rWKuBM77e7KttQOn6iCG','user','ak_f843566ce0d990be','2023-12-17 10:23:00',NULL);

