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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$lJ035E9F2oa87YvYCfSOHXKR6Z0l67sdbZ6cL4gcPDE6eOXlOyzvH','user','ak_746b77f55e012fab','2023-09-01 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$MRL9fCKWY4aIDVsb76oNDgHiimf7B.2914d/3.eAz9o3OALd54evD','user','ak_909e23efacc8a34b','2023-04-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$/4csSSY4oJmbB.FCVleSmZFUVN354A7fWofV1Sa1f33eL7Ag/WZdk','user','ak_d215ac731c7d4ef1','2023-03-05 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$qDWtgavwJLLohhhUPRFobCxC/4B.rn35kW1P8l/2eP52pIUuxDFsE','user','ak_6cf52a01c1df66d4','2023-11-27 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$JDM2HgZcMCQ9hXIRaH6JfH1eZ4T1DtxwH/OdCoar5PYZ0.Cy9l9L7','user','ak_69df6b27e43614d9','2023-09-18 10:23:00',NULL);

