-- Host: db-master-3.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=17659;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$hBUMrsSfj1vTiKxABlJDIC2FbecfoPkIWb8.xaGupg4z0Xar1wfx.','user','ak_1534770a7953da8d','2023-08-17 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$jbLFgiqCK7cPTFEZ8v3kX9M5QzCVVCOWbtNT3PBrZLzn4TzidRvtq','user','ak_4f6338146eb8ba58','2023-01-23 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Auid2g8wm4daHDA6Zz8XEnVuipqobQcH9509wzN6.D2E5kbFWJ9FW','user','ak_1d309a56d8cf4946','2023-11-09 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$qz0GwWGw6cVeEKdflwp27XoG.n7/muQOOBCjwkcseCDIZ9l3KK2AD','user','ak_952af7ac3ca8b282','2023-12-18 10:11:00',NULL);

