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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$3cvEVayyI3SdL0bWV5A6GDy/4aiEMxpgrqDVwq7/SdkK2Mx3mm.lE','user','ak_0b40822cf5a15abf','2023-03-07 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$4gkMEEvT7yROctMfx53ZaIO6QW7elpnu.3S4imQSj3Jqft0X4h4fZ','user','ak_626e36611694e963','2023-03-28 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$MlVn6o5U16nuAw/luiDZdPuhU.L9chbpRTHqE0AwNQ9tgX6J8v29I','user','ak_ec31070955e43341','2023-05-26 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$AjJlYLTu2RDlvl0WcHlc8h0O234nCq5FNhKDKVMG0gFyiYvNTZxII','admin','ak_7a4df93e275cfbd2','2023-03-18 10:13:00',NULL);

