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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$sRTc1UoLDmZkPwt/KlKtQYmMlYCfbjBq3lqjX1L/UPpBNvNfn8dvO','user','ak_ccfda46bfb68abf7','2023-10-24 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$GuDkP13WBwWCQzSzP/P.mMYmrigqil.UMLR5bwbt3f9H1ogdXkM/r','user','ak_412ceecb6466869e','2023-12-06 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$2geAHMnTSsoe/kZIpRxfV/bJafaehEVBfonc7SU3ZGHiUcAWL3CJQ','user','ak_2df9cdcb2e61dcea','2023-04-20 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Bu8PijU90py4KTi5EZpmCxZkXDHv9hn.cjlv7mERAr2nsFxL.zaPh','user','ak_a03eec5375d8b7a8','2023-01-21 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$QxgsXke.hcf1LnKWKRx6v/DNHL2pYb07HxWaH1bbZHw50BO4OuE24','user','ak_c4fdcb8ca22f4135','2023-12-26 10:12:00',NULL);

