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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$fteen7r53WNJI4/Y9U0k7viT6tdSqAP/q687tgBGq3ljYKFCSEtGg','user','ak_e614d5afddf30424','2023-01-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$SC57Bhc6B34TnWs9Gg0/LZlEEOByJ72cuUlSwpSqTCGkMQsBmS9qS','user','ak_7fbef537ee82092d','2023-09-06 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$d2VvkunjLW6AIZjJqawNTBZtupO6TXATXBwFU7VrgdRgV71AjFpDR','user','ak_e9d0318e303f1fe1','2023-08-23 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$oDpFTKVUFyonXPpIqSglu7HlhmhGYcKfTS5rpII4sO1gQPQEmkglY','user','ak_436295485592214c','2023-12-06 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=41156;

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


