-- Host: db-master-5.internal    Database: webapp_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=25888;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$jdcsi1/BCUL5y/9OH5ZAoHNG6Pdg3FPi8WVeEUhoCUJGItr69Ytmh','user','ak_2f979cf8d51726e6','2023-05-03 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$uuSeyb9jwez/MGHJvkVZwXx7YMylNgAXvGR681MhcrxX7U38sV9EU','user','ak_a18c8958585687fc','2023-07-17 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Csy4WAX45BI6jpT9SUzLQrEJ2AdVK3KtiRqEdRl64feAxK/HH.JcZ','user','ak_0666fa7c5a2d37b1','2023-10-15 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$TWv6CXKtVeWUYZl4NvNq7Ok1p92Nj8170omX9lEC1d2zSq55zAn9d','user','ak_d9dc30d7195096ef','2023-06-25 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$4eEEJQfGLGBF4UpC08p7bpT/xyTI26UwRDvPYBGOrWa59fr5DB4/p','user','ak_a42eb2f1c97c033f','2023-11-11 10:16:00',NULL);

