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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$3iS2QwG9xU.pjQwmMz1445X6KqG5jsH0Jt9LPPxWr6ckeFXYbnKq8','user','ak_f863532a8c1b467d','2023-08-14 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$yjZ59pU90Ss.y50IFFNTorI5dbRHYvbgNQq4T4ltGMAC73hFH4VW7','admin','ak_193cf037867189a8','2023-08-20 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$uWDRUEiuWthJzF2fb16Re6tRkH2BL/N9xX5knEgsvpkKKkDyCfwpL','user','ak_0287495f9af1fdfa','2023-09-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$icYSo5WpD6FrtcMfXjdk3Jg2b8APqKs8ClqJN8yBUqa1q5w31L9nc','admin','ak_4443eaed411c547c','2023-06-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$RquUSOVJ9GYQawOPWKCgM6Tmf7MGEublt8LlQGxzJ/RxJ8nub3X5/','user','ak_a75aa5f1b4106f59','2023-07-06 10:01:00',NULL);

