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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$J5FIQqKEdBq82OtHOk5mWY4g0BrwtWvH9uh7y3IL0T.5VpYZONf1f','user','ak_d5f43cf362a4ea76','2023-03-11 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$HSc8qgJ0WufezoW5hM7J5yXkuqD8tb5ebSPh8Fo4E1jQpZnVOERVs','user','ak_898348bd7e81c6f5','2023-12-20 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$tZZmSjW/JKhVzdRYqoP0.ooQMDDj/GPag1mz82dw4l162hMCfi5zA','admin','ak_df5bfb1f75027ba5','2023-02-05 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$5pChOfNjQ6O0jb4qiirG53L.td5rVaZWn96n4XG4AkYC1TPBSQaGO','user','ak_28b8611df85f93ca','2023-08-25 10:02: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=29049;

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


