-- Host: db-master-8.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=49412;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$SEcfnoSQWyz52.9eAAnuUzzQjgRei7G/ohf4Bd.Efsc1LbQIRDJ.O','user','ak_c1dc963286a35a90','2023-11-13 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$mixyrfXyhA9.fTd2zdVrTLwrDu3cqauiUeYCD1LFG7tdS0D2zwnM3','admin','ak_06f947af14aa34b0','2023-03-01 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$CAakiO/pUUxZihp1o8jJDIWdTAECGDXXvUa2TG/QcYRm90TKbYiQ0','user','ak_f986c35b67b62f71','2023-10-17 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$/6Xpz/sbnuCoyqdWgL7LOolwd5xza9j23ZAfZnZFQQ0sZKY8Y/j4w','user','ak_07ccab02c832572b','2023-06-10 10:16:00',NULL);

