-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$AVysw//vIgd5T7R3WDCIaxKrp.5.t5uybQI89bcTCpxwjWlk8uQvQ','user','ak_00e1df4b7fd77932','2023-10-05 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$Wjo0wZ80fM.wFzyhBWOi84lPJC32NFCMn2A6ZFd2SuNxjId8AnRyg','user','ak_ac82669a40954194','2023-12-27 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$XWkfeSubG3a0SP.so/JTV2EzTW5zqJmSuGFC3HtUYce351WEhZq5C','admin','ak_627a94812c5b3ecf','2023-05-26 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$ukQF/oa407iMw7sxzmTlcngd8k7s3MNP.JyGMcOQ19.dCxq5dACWr','user','ak_fa23ca5c89462dd7','2023-12-25 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$cz/YShvdK6dMohihl0EDDSYlXQOLEg042mpDt93dq3jHSohmjPpbQ','user','ak_b9cea797634a80ae','2023-09-11 10:23:00',NULL);

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

--
-- Dumping data for table `payments`
--


