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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$A1C73yht8il6Vs4uoUxXbqPEaLi83dM0TU2bRmGlr2H3X2OSt3Mco','user','ak_84cfbdb30178adb0','2023-04-04 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$DXibjHsZAdVcRW5c3Pnnr3g89IaSiadJ34l/O5tPin6X6sxvv8qZ6','admin','ak_209c963ff3ed0fab','2023-09-21 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$XQr.wytsD8o4tH6fJy2914v0ws7cAMttGsZBkwbcuUJBs2T2xPHoe','admin','ak_5e89abd66202047f','2023-01-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$X1KeNweJ2h/gqg6tpjquOa7f0zavr1plI4NOkcvaBTUiCMww/tNu2','admin','ak_c5f3aa8e8d6f661f','2023-02-05 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$yCxQdR4938aW4E8YnLjNdq.2EyJJ3Dhbl5c11WUgV7EooY.ilj5pC','user','ak_c85e2d8c55bfc5e7','2023-06-03 10:12: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=5490;

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


