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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$SqwT3qeY.SF0DTFrcdEp7bAonZfyvTZq7lF0HL9yfkETS1GHBA0m5','admin','ak_c644491ad8d58ee6','2023-02-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$1h.Kp1pABk5TMl3v4oQa/YDmcgK01FxmB5FnXYWAaIdpUbmqtkVO7','user','ak_4a05122a5f1ab535','2023-01-01 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$mrcVPo/YSWEfF9dd/l1Ft0YZ3lM8hm4jyX/UEh5lanJ0YXwbQxDbV','user','ak_aebca576b40858cd','2023-04-09 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$8jHunDlTfr.evPFLyix.6TZNbSY3DcwYzy8r1MM.Er1bllrpjwiRf','admin','ak_acb90ef7da39f4b0','2023-05-07 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$7MVS29q9CRW.RVhaEsCH97VN7n26cxqcd/EoxpS6DrSjIn7F6xI9x','user','ak_e59be27a1fa13475','2023-04-28 10:06:00',NULL);

