-- Host: db-master-5.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=12307;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$rkakiPHKXaVfUU/8jZ8JuRwyMyJhuY4qwh6knUww9tPjNu8B5Yepg','admin','ak_2a0a127d43b83ceb','2023-01-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$aOGRiv/Co4U.O4pm1zULYGlzY.3F/ZO30H8qXlHrOo9iSmJmIwY9x','user','ak_bf91d6807eabf8a7','2023-08-26 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$KVavs0IXL4IjoyjffKyyk14CuYbq89pmbpA3.Qb4CCOrMTlgFgxbG','user','ak_88518ce752065e57','2023-06-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$yO/SztAU6tHsoVXdK9E9X5KTc4CWt6.KH00iSSzYz5P/w7epUXj7G','admin','ak_e1201286c6e82811','2023-02-03 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$UKP4O9BHMd5eriOaISrzubd8GZz/JjoCwzDH/qoz5bfCYfjocYFEy','admin','ak_dd11c56423dd34d7','2023-02-21 10:10:00',NULL);

