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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$ftTPDqPz6Gw5ZYbWfXYQTAv6TJmAG4XKjcC9Og0xOQ.9PxgulFD8I','user','ak_62556e06777ad92e','2023-04-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$0DKl/E7U/hm1E0qYsbBbnyzhQ1cbHDpvlNEwiiTVzJNtFsTH4D7u8','admin','ak_eb3c4becfb0c9318','2023-02-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$C9cR7nLmwNWhgKDYnSHIziLwmELeg.3AveWeGAw41kEMMuqxroeqM','admin','ak_2289a1f2ab00911b','2023-07-12 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$a038bLokXL7wLu9OGo4lMsBP65TYwvOdKQIORRkomkhpFXI58DZqC','user','ak_b4f8ecde6c478a62','2023-11-04 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$poq32jeBQFLAsy0t.kfoJCKM2FwGzZHYndqSZm0W7Xj7g1SOaDFNb','user','ak_5c2671d5f19f373b','2023-06-21 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$Xb4xxnp5aQDwIZMMoTD8BQoMIUSzXt9pfTcA1kcIBlpQWOTS5Ik6w','admin','ak_3d73570f321d753a','2023-11-17 10:12:00',NULL);

