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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$.8puHLS2JbnUp629t7J5U68j7fB91eKfByUQIr9OUAvG52krK2Bux','user','ak_8223975f8542485f','2023-12-13 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$yDeKMfGH0FxkmxOtcvaHLSwVuFDzCVtruPO5Cq8lGWpXhk83LSNHQ','user','ak_a8ce4de8941f3b62','2023-07-22 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$WaP4m65XBgwwqX0gyUjmsOPGqrxYmPnSMhgbWnKEevvCTqrjG4beA','user','ak_c215b29f9863b08f','2023-10-10 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$n6W90EYbcStx7VQiq07i1ty7QSpGh2vPXk8WEpnm9402muJlcMdKi','user','ak_c5265385020ea085','2023-08-05 10:08:00',NULL);

