-- Host: db-master-4.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=8130;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$NTBXxJAFXxk3wfeRWR9dDBHL6yE/GxGifxuY/PJIE/Lm7k7ACc6d8','user','ak_54c302c31b3db2bf','2023-04-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$ekCqYGniyq5ApzKdqQJ9TAQKFKfNPcHCjy9DnGk1wKFgZpf.AKQ4a','admin','ak_69d1dad012e0a083','2023-03-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$f3T.XDgDC1KpGXk4We6wq5XiNPAgR1rSzQ9ELjYhc/OE6n2X4yjf7','admin','ak_fda0e600d96384d5','2023-04-27 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$wfQ4rS5njyCvL7TYVIakEt4Se7BEn.qdTxBHfmqErEMGDUsvz2KJs','user','ak_cad11d9002e59410','2023-03-26 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$7bSjJ8giR071scLqjXs.BJ4Ch9YM9hiZvwbRaN2bbmgt4dce3R.wj','admin','ak_c3703b2e9864eef0','2023-07-13 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$Ouxv0n8kGri/C2rgoXXvzQkp31fzF0.v.2uus7wYHcnZadgxRstQv','user','ak_73b899de2a390ae3','2023-10-17 10:03:00',NULL);

