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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$xD8ZJbgxeOhvJ/1bX5887taO8ENkYuvxLk64Rkq3A5hNVjVr0rv1s','user','ak_5659a7141800d7c5','2023-03-23 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Z/QDPif0Qi2KDYsxlZ9PECj/d.QCGRJLqL1HLd1INWVqzvgDvepnO','user','ak_33dbdd2a347f196b','2023-01-17 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$ZInIXSKh.qw3fgS7fnF6Ya7NKjpjcSrWQXyE3d2N9YVVtOPeyM9pO','user','ak_4fcbc7dd56aafd6b','2023-06-15 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$x6BJEboWoW6kr9kfvRfhECBInDufwqXhDJ8Q.Xr7.uiadxxggj9HI','user','ak_eb51ef9a292851e0','2023-11-02 10:13:00',NULL);

