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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Fdfjs1eWUrFxznAfv0EL7LdVWa3VBaP1K1nGJ1pwcBe8S1QBJqV2Y','user','ak_37a5a1fcd5434336','2023-02-15 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$H/TsMne/0jMD8leczOvRBcrEroV.S9qJqYWBcKyK9XnVo7PwZ0Bgr','admin','ak_07b0afec6b6b62b6','2023-05-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$oas0u3CRwJ.Eh6W9F/6LgFlX9ULDI0GxqnhwXDH1SOkSu0cC9Wcxu','admin','ak_f3f4a3eaa71a737f','2023-11-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$c7fr9WBw8zfB1wIthh5TX7.l.rZPv1JDSdqNYFQwaIzgS1N1wJKhE','user','ak_9ca37d51a6790ec2','2023-05-11 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$yT/8XwXWfT/pYvyyT3KAqWg8DxZB1VQ5QG5Om5DI1Fx3lEm8m9fWN','user','ak_172ecfcee78ddec2','2023-12-04 10:01: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=40662;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=38536;

--
-- Dumping data for table `products`
--


