-- Host: db-master-0.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=40707;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$37XYQt1ImsZ6Ncy4e9nRhvzn6V5z60SieIUb8rc0R.A76pfT2hdpH','admin','ak_8068ab780e285f37','2023-02-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$OTrdpZQ/bCIxMBQemEBMkw3dT271KotEVOe7s3uo/KzOer.w5vP/s','user','ak_bc0f2e34d0621bc3','2023-02-06 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$IJ.J97AE7tKMUgWWI114JzIo/AmT6Ya9LBHY6sZyaFQCDK2kOx8Ld','user','ak_649d10dd422896dc','2023-04-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Qs5RmgsWkvVQpJfBwzl71d7yFIz/siqwipLvDMPNyhSd/lf5sY9dr','admin','ak_c30bb52145709f2a','2023-10-05 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$WcbS9fZ5ABBL9b37qamjeeWny.PKKgkdp6nzazVUY2jPYfWyvp6.S','user','ak_cf071011cee3aed7','2023-11-16 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$hOOI2uPuQw6jffCPu0WjweND256dcs9yLk769XiuHnbVoBp96UELK','user','ak_ee2626d3aaa333e3','2023-03-22 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@example.org','$2b$12$NowD/U/TiyErbwfRJX7mvwSkE7nlzqdZt5SBjcDW8eE9cNduL4L7n','admin','ak_fef75853bf0ce626','2023-07-20 10:15:00',NULL);

