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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$.phnuDlmB2QSPRMbohyE9iCuuHUAjgDvAK4NTmy9nLj7TrisAhUDR','user','ak_f6fd3c1d21f54ef4','2023-03-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$Xv4kuFqcXEEEOtXXNqTnxAAgEswILd0hyGHPaGlHd4LqrWsEb7Xi2','user','ak_b1b0b9900acd6358','2023-04-08 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$NzL7RsGss9yZoFI1FeVjYLlzVDfjkrhYgPkHd2ldGvC4Ilnk1OZaQ','user','ak_801e2196e8dbbd59','2023-09-02 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$P.7k65jvB4xObptnUsBnuti1VX7c9ZKLlEVZrvUZKSTV/UVlqrrUU','user','ak_5db4e9f81ae0f510','2023-07-24 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$8/1rXdawL3PlXwCnPWgRwKqZL0eJ0gClQ5i8eU3gHWn3N3JzGT6Da','user','ak_3d2b7f042c54cf66','2023-02-16 10:04:00',NULL);

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

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


