-- Host: db-master-5.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=35381;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$LGLisnz11zRLMRt6LXVagoMESSlzlO30ynFOCe2hbSEc7FZkkTRC8','user','ak_22af7be5ace886eb','2023-12-25 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$IghnfvQRyGHjgsFCihYxpLrBPUFc/QST9sUTeKHnPH9JeEpaNocgq','admin','ak_90e63de1bec47e5c','2023-11-24 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$1xgLe1fVXt.H53Hf6jpZD6Fjii4j5RNAYAtzBhmFSEdvH0Giz9dBo','user','ak_307d98bd92fb68fa','2023-01-22 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$9qZxgud8HP.PXxJSQmf2MFIXOuvmmI0teS6ZH1rA0r66.neHmVrSR','admin','ak_dbdd1ac4a90ebe53','2023-02-17 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$xCVWdUnMe33j9FaUv0fwGkNvQcJCeIzhtC/iNs7fZAOp0vUzi85To','user','ak_1865a492742f4509','2023-11-04 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$buRFM38DdIcoB.67Zs.5pzydUEythvzFRi1ORyoUnTEM4FwH70lQD','user','ak_4fcaf54b53f161d1','2023-12-08 10:10: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=47671;

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


