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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$TIvqZ/heMCT6SEdDbpvg4DDFFDD8ncN8cA7b/VJdbLHMXWL.Y1dgH','user','ak_4a885cf6947958d1','2023-05-07 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$1iDHdtMybe1hkll6c7bao3Dl8ypSFbDzZi.1GsA3yv7gyxukqXW7j','user','ak_078e52f4f296f549','2023-07-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$1lSXR4Fp59FkJ7Cl4HfbrNRtD2vOYdoVn7ISmiUU5U7xIiJc3VPSH','user','ak_51fbe3a957f71fc6','2023-08-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$JO6ObbKRnTdjlI1Hn4sDUHRaQcY9/pewCrL0EFIXNSc2fmn7ZZVpQ','user','ak_1a96850901b096b9','2023-01-01 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$gJgWnI0gQcBcYrtYcSE6kXeVcn0aGEXklbtEm7yKWIBFz.9aOdSGO','admin','ak_12cd404a92cc5ef7','2023-12-04 10:08:00',NULL);

