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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$YJdJnlqLw7aNtESuu3/.lE7bYK5iqJ6zHtWm18K2Ls/k7UeDKpc8L','user','ak_f99c3fd469ae0ce7','2023-06-11 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$FK680BDNh9aQKm5Zya/2D5HSkPT1LUxe0HpF.BiOmNqEcSRiiymh0','user','ak_7be45505a114661e','2023-02-28 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$A4bOK8PGGZrMuvMEAxQ2GjWSsSH.KfHxPswAUGAUV0cIgf2XA1XSW','admin','ak_87c83272e85d90b7','2023-01-05 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$BRkEPQ8IijQJ/ndmVhcTPls2dlfhcGIM3WjUCz0W1RokOixkZrUO6','user','ak_2f5577b8e553b5c9','2023-09-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$fWGBMEJ8ZoqEfvAbQidwXwf/25WZEjvUNEDKmR6c2AjCAjsRaVYr8','user','ak_2cf51bdb21830137','2023-04-02 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=29369;

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


