-- Host: db-master-5.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=20480;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$om7bYgcdmQaDSVW9TBISYub.PhyVUdsSewq1.rS/kl7f30KtDwhz1','user','ak_6849b28174ce5da7','2023-06-28 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$w1jeNgdQ5472ym8q.Ha2JHJcJriRuvyYVV3VG1swl0NIF0BpiYp0u','user','ak_cc5fac8e6711dd04','2023-12-12 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$7HifEsggvhC5NOiE7ssZJcNfBTppiENoNYH.b8fmWBhjCr09HTx4y','admin','ak_b292b0a8d1847db9','2023-03-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$VTVuMjx57kIesOu2dyxY5vfZFccFxmvNN3mKsNvuziYbHVxPUjXjZ','admin','ak_4542868818492cd3','2023-11-20 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$0OV3Jl.otGzpnAeb7D30cuuvUdbDQgbCnVt8We0LubdlodxCyu0Vx','admin','ak_04c8fb20a425cbce','2023-02-23 10:02:00',NULL);

