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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$sW8q75fG9WEfRsoO2Ljki1GyjQi6IU.W98foIXtfMK7XvS1TqyZZB','user','ak_8f319438671de4ac','2023-07-17 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$Ddy1qFqhhAMBHup2wPG/8ciE8aqAmYsvEoovL03Vqq.660dpoGBf1','user','ak_6ab96b30cc424c31','2023-02-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$bAIFl5JLiTtplRosPsJBIF1wOW9cwT6RHOXiBQr6BJxj8gI5uGUAV','admin','ak_43a479946c586834','2023-08-04 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$ui7vf3sQ0CVFHeCokRtG7PIw51RlJYAl42es/ZAQIcXhDfkjyZfwu','user','ak_faf84dd00dac9a7b','2023-02-02 10:19: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=48079;

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


