-- Host: db-master-3.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=13723;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$koN9N224tV0Hv6blRNqsD1awHKpcDfPt3wIXa4S4Xcdq2xpK04DFd','admin','ak_2742a204793eb71f','2023-08-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$ZdEfEkUaCxbwuOSJ9PpJ1pB5Az1s47C2DqcgNXUWU.wsNz10u0IEs','admin','ak_433be07cd7d9d9d4','2023-11-09 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$tA5IX2Gm8VX9vRLNymmjyQ4be8pXv8Mt9lKGS4p0Qoe2vDF1jUwFG','admin','ak_0bdf1894545a96fb','2023-10-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$U54KmaoP0PezuZ67cm/0VgWHbYfTC2W5obomt6y7bxQsC7HmGPWVs','user','ak_d828eea6a35984fe','2023-05-25 10:09:00',NULL);

