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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$aK0IPfAoIvxzQRh/ecpzQOwA6Ftx/ML0V7Fz6ic1euL4Gwkum4xVf','user','ak_b892a49affe3e3ce','2023-01-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$SRIM.eC2OL/UDtp8GprplpJFPoMgCjareXE6qQuKUSfg2MXleFs3j','admin','ak_76d7dd6ff05cb3b4','2023-02-04 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$ywHr4mWh1/RrpRPIlXzHzyyX2UhfgDMQR3xn2jNFaK5vnmCVKpliD','user','ak_14d3d94727163359','2023-03-13 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$F9sTxLZg/9.zXUXgGRSoPO9Hqvx3dgY8aLwB2WjhzHqQLjbReAZF0','user','ak_d32294e1840b89d3','2023-05-27 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$p7xwPUzWWABRbAv3/KkAe.VMsaCPsP3KcVKVkRUGEqJUl65eJoiD2','admin','ak_3aa46b78725f8f84','2023-10-25 10:13:00',NULL);

