-- Host: db-master-5.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$g.8Tupvz/aioMJRZ3JkC69zCJLPYJJJ9GAZSjilZWvjT9uLVBzrMy','admin','ak_dccf7f08625d979e','2023-10-12 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$.p1IBwbb0Ac6I25EPxgHfcJktqRd6uQfUkGifkC6bw2NO/tZWD9F5','user','ak_c95f3e64767c7475','2023-04-03 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$10YFbnfl87l7HlZCWynkCrODPLY6n62Qz2bPZGuihNz0dADQB3sQS','user','ak_dd8d20348558fdc9','2023-12-19 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$wQJj8NykNp8qDhOpg50KUFTYtuAfVYtBqUP8Laaki0WSh0YVvHrEz','user','ak_37664ac2b27d444f','2023-06-28 10:08:00',NULL);

