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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$c.onj90U1fKsvMsLyu4Bw6ckiW9B03yvMdG1BYeaBpuspY3jCQBNq','admin','ak_f496676df65ead8d','2023-07-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Kh2xfqAv1pLP0iUz1.q6ok1iru7vbDRpgsIn56boIve9o9hiTam/2','user','ak_6597d8846aa24f0e','2023-05-23 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$no3bml31Yr0A1gG5X3qlmT0791bxUVTSRskx6TnrsEcvwQeY7DMOQ','user','ak_0eda98bb8818270d','2023-02-13 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$RO6vIoZbSvq9RqZ6NRIsYZTPJmu5pJi4qvjk53qL0O.rhly005/vL','user','ak_a2d73f9d5ed1ca3d','2023-06-23 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$S6fMfS4RJB/NTsZU8SidpLdUkRZU.VuTHd2Gt1438ErifovejQ3Ca','user','ak_e9fb62ce74c7619e','2023-09-04 10:01:00',NULL);

