-- Host: db-master-4.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$NM/mn6EEKg4joexSQ/osTyvtxd03unkXcAb1MflRJXmKq3jMmo.7q','user','ak_d47f4d6c03183cbf','2023-09-27 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$lsxYihjuOVv6dxEPY0wfnn03eD8VUncmKClVTYc.7mdYO3f8g5IR8','user','ak_1f17ed2d6a1af62b','2023-04-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$gNkkUwn4n00jG7bDfh313Fr8uGwdQrbZL9zzWVX9wbBuoXvGwWAYi','admin','ak_8fb48a62af90d849','2023-09-16 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$.3s4xRl2JD/ZMy4ZOrK9r/QjN9b8lvC79NfueYO30OI9LCGH/KPFu','user','ak_dff202789ac79d3b','2023-01-26 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$Dtq2sW/bgY75DkgtcVvPhvdwWPHEdOuyDxK50OH2Fxa2PyhkLd1sq','admin','ak_97c48a6b6e1b2522','2023-06-14 10:02:00',NULL);

