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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$JpSEv2fcj4berHbxp3nqO1fFdt6btMSIB00uGP44luGQuLaAOycwz','admin','ak_9dbb5ca57c3162f1','2023-12-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$1RoNDfzFj1eivHHyVHbMmPnm/D8TynDorFOoo9pModih4sh27.CwQ','admin','ak_f93b761b403730c4','2023-03-18 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$FmvVIZZdi1c5K6VUcBJVL4NYSk1zzx22jozTVSPGrOY4KYiY2XGd.','user','ak_1c06bde8917ac646','2023-12-03 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$m2tsm5Vlvaik9Rg.ggDpxh3ZacHWnWT5y8XycAp0OZ8uASMOKjTSw','user','ak_6e2b7260e68d9d76','2023-07-09 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$X70jdmoJFVr5WV0624SJDWHPtb1opbciqaq77sc/y.JTyPJJr0mZJ','user','ak_665e2b758335839a','2023-06-19 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$h1ONGnmuWrqBn6Mq4d8wppFIWJiAK2nTXP5BNUuxTQ65IEtlf0Afm','user','ak_b72b1044f2986b1a','2023-09-01 10:17:00',NULL);

