-- Host: db-master-3.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=10578;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$G7RO4zclSC22TRu/tIt0rCf3Lrq3EMZGZrRVm5NCX0oIZtsNwRnVV','user','ak_8c121c2e47726ce5','2023-03-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$F71poUqJnerfHUPaI2vWmfZYzvFFM5FP8J2KJflyFx7sq8eGk79eN','user','ak_25bc5e639b21a374','2023-09-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$6fCsIMjnJQG4b3CHi3AsMzCjUA6jZ1vnSfQaR.6y2LDtyfyLxgoSb','admin','ak_ac945bd71641f94b','2023-11-13 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$7oSiQRTsFu7XrgEbuKfQQ//51bk3ISZah9kdY9cndargRnrbk80q9','user','ak_48a374f64d774cef','2023-12-18 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$OcGfNJc.XWxrLn.yddbJjzRMMLnfpHsD7vvbwzeEUjLVFRrYGD9sO','admin','ak_1b9fadb40b4b6ddc','2023-02-20 10:09:00',NULL);

