-- Host: db-master-9.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=2426;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$DUTCGnbSw2LR5s5uh1kxOsVKJRGljan7pvPG5DbXonVl0eMU81APe','user','ak_49b9c13f5b634399','2023-03-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$8SnstlHCQpRXr7a/oP2Qtp2vEXYwxobXukbohlVKa/MN6t3NehIWv','admin','ak_f413010978c129b5','2023-01-19 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Rxk.QCp3Dc0uFKodibIRA8qo/hl7u7J5pxUyikyHmaiOBF6zlxgyf','user','ak_30e2cdc0a3f2bdb5','2023-10-04 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$E/8RwuiXa2oADxPheys0ldDhJJg4PUB2UxLhmqf6.ZWaJqLo88/fU','admin','ak_639c471e1781fbbb','2023-04-01 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$jqBpMUdz5mWj1i6cfmwbqpScYaXZXddvhUh8bqn9uRCon/kL9fiTa','user','ak_879412651eb93517','2023-01-26 10:05:00',NULL);

