-- Host: db-master-0.internal    Database: webapp_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=22196;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$Pj6sJwfzTm53nhJrqa6c1x7whzbc6tZW8CMGzos05Qr2q3WvrQZzv','user','ak_c04210f55a34c393','2023-10-25 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$SwdW1VAD7TDbYFKtHDZrvLnrpdR/hRG9K740J6NtH/ycQlyUF.49G','user','ak_b51de66f1353ca33','2023-04-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$cUr7i5w48/.HbGO1KNtEA.s3x291zgg8uyfQkX1gnvAFWD21q7Dei','admin','ak_88ef06e75b4b01f2','2023-05-15 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$.nGgPmgHpANuW2lre1XNvwHMwAJS4LNmVrbmlGEpyaRYSLDkIwK0.','user','ak_51195060c4dca5c1','2023-09-08 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$ux4J/q.uEyMx7uy89HWsYpDBZo02FQ4gDH6.8xaBY1Y0.lWOdTcu5','user','ak_b9be9da2b2216ac3','2023-02-10 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$js27JecSlyaNWjWpnndpOzsm63ieynsC2psR3Yvntg5yrLcqtT/F5','user','ak_cf7f1ad5c2cf7066','2023-06-22 10:14:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@corp.net','$2b$12$KXVqBeW3boa8MAd9TCDOz3lfOohypT7odFjsfqOclcUDltyulIQEA','user','ak_2ed4a45bec88a5ca','2023-02-03 10:06: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=25641;

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


