-- Host: db-master-5.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$LvPfmb99Pd0qQbI8fbhijbYJ/6/Gsj9T8tfK0BQVTp3Y3b9yAKLQZ','user','ak_396b38bb75438149','2023-02-19 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$77az/FGIo7g5i.o3YcnbGfa.YnK7ymuxzOujOIMZXjWO/Rlc9pNRg','user','ak_3c734ea4e37bb4c6','2023-05-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$gANdainvZ1uvkVNmZXgd26HZTXa6taPdDRA7FC27bOXV4W9L9igaK','user','ak_70a30380bc54939c','2023-09-06 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$B4hLDIKj0naDSaZQqF42Je9kQSoXfpZ/RVv.JwRtQ4xYvEP6ZWVut','user','ak_4d713fc1b357c547','2023-03-13 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$c606fOWcQ1/Ifr/nPKc2c5Fv6d8v50S26Mh8ih0iPT2waAXDpJik.','user','ak_259ac94fdc61b2de','2023-08-27 10:00:00',NULL);

