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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$wwXdEmKeNheYaZxAqqkFK7j010qLF5RHAOWPwtI2kxItn2J3pjipj','admin','ak_8cc66572666357a3','2023-04-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$3OFfElwMFM/WYCFSC8.1A9yr/0F0bfnDsG3ebzXDRgBO4aA9KSVPI','user','ak_d7c0cc4420e72a2c','2023-08-21 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$utRdgZg4KzonDtOGLXS9jM5lxFe0kpDusvEHrGlz7Heu5pDjbJ2vp','admin','ak_2a169f70642a5e42','2023-06-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$7.xPL/kCw8Hchdnjx8/Df53sVutvm1qhM4niE/J7ln9hMTd1MhfLL','admin','ak_6d8ee02fb8a240ed','2023-12-20 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$yXcQRGldhXZfZC20BfmlzY1C4pNu4QaW7LaOZZbyluGoxMi.9d/TP','user','ak_1fea9d533d7cd3e2','2023-04-10 10:06:00',NULL);

