-- Host: db-master-2.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=17561;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$.dkaHrVNzgsojcXiumx46Q6Bxo6y9WHAYgr0GZAFDfJYl2mP8ExUU','admin','ak_77c2b084d68b167d','2023-04-13 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$AURLKDQA066Bufhh.cwJE.AZ8quSWb871Izrv2w7fdsnVFZJT9V6D','user','ak_75f73fbd70d95f52','2023-04-24 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Eg1EaMm2TKaSheNYRZUf5YkklCctpnoQwKlilAbZUkpYorSyR9584','user','ak_188254b402e1f800','2023-10-07 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$ZDXLVDUfs/76nntj.o.a3cjk44oEaBFH52Lt9Suq2HVRjqggU6YRy','admin','ak_fadb429be8a3cdf2','2023-04-02 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$XUTaisDrLzyCA8e5kcbHy82TWwVeOhmN8OHBe8DogzLO9knPgHSU2','admin','ak_02d6926ab7054c88','2023-01-16 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$SDzOZihU9RPxo1wtDlsJYj/ArHGiRVaZtPe32Ee0Moebraxeo2klc','admin','ak_3fdf124624a08ce0','2023-08-05 10:14:00',NULL);

