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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$lrT0bphiThNwef4uF1ptQtU.59ACJpIWvVNzRZ5OorFGDw1oZVCeW','user','ak_1f655b824a19a625','2023-02-11 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$AHz1OYrmvwBs6Q4CV0EsFQ5KCvXOH5OD3C9PcDPpJB9gc/zD/NzF/','user','ak_0a3ef440aa4839b4','2023-11-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$sEGwRRy8cOzskbhvN4qvv64AGNkv9cbTV1SJbc52vR2GYoorhScCX','user','ak_ea066a132e9b52f5','2023-06-04 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$zNWjdKTC7V.trDyQrlFX9vI0VB9jjS5.JqIPRe/TPgQD/2jry1NoG','admin','ak_08c889a987476e31','2023-01-24 10:17: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=25706;

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


