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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$4X5k0nH0SIMROBO0LDZqGPBNbtc1KNSuR8y0Oe07LpD7.4MqEWwAk','user','ak_7a7f34b6d430b34a','2023-07-26 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$EtD58uqJ/G8Y0RE6sZ0DNTw90sX8eR0YuuWbV21hdZWikz3fjaPLY','user','ak_5ba2e9e576a44f3d','2023-07-22 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$56k4Jovl.41tztkWemjpHKGBITTn8TbOdaQPr8l2BGE0ookV80Zhg','user','ak_5cf6d1132f7ad60e','2023-03-25 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$boLP76M6o8HAkfJDxi6AkWQ7VA/fK5SYhimiCh7tI9ILNehcr05uw','admin','ak_604d1a69e9128bf2','2023-08-06 10:11: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=12023;

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


