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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$MtmxHFjr8rpK/JdVT/jACIy.sM2Yl.BrTrZnaOMj0jxLwVnbGWJIM','user','ak_530b0db0c51c4dad','2023-02-11 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$kiNl2ridpPZRVokzIZKMnKm7Smg2m2oFKSEzgZHumy3NSLQAo4lj3','user','ak_6a959886214f8da7','2023-01-19 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$8u5Kmo6u2Jwd20rPthTo8i2rR.7kyNKOdgjCI6eztUwFoV.CJWPkn','user','ak_102b5ca73e6d187c','2023-06-19 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$qlYzOuNJlKJB7lwVdJO3BM1Cxz81m/tQ8HgA0Ai9g9zHB4y.ccmkU','user','ak_baaa69b7506b4b75','2023-08-15 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$nid4jGiRMuiFcSKnlGz2jx0bnWcZrr9bnWC89Xyx5MSVlQMw4rlEp','user','ak_ef988761a57d520b','2023-12-17 10:18: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=2864;

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


