-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$63pZIK.JvQa2smIqrH1QOeUjaL4Bl.TfloMA/GP8oDWkQTZrdthgP','user','ak_3313733cb36335cd','2023-09-14 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$1EMfu5wWhzGLk3qXGyvoRy.uSgn9gXti.jwb4SDGNlmNqeGDwmUz7','admin','ak_17fbd7ee7fca1f82','2023-03-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ybsZT.DmGjUp5gHplMtfrG88toBR8pxNY70Bx9rYBD63dibb2fG9K','admin','ak_a947036b4475e5bc','2023-09-03 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$H.06Cx7UjsL5LDYbmwizyoyuaDQl3kBrvExq6Y4WDoJGHhqCdIyGj','admin','ak_4df8ea82a45d1268','2023-11-02 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$iVkcbn0VAhofcMvRrH/XO9A8WUZTaktX7ptwcte/1U085kWz7avGD','user','ak_ce527eb39b99b3fe','2023-05-13 10:07:00',NULL);

