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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Isn2oONUpVgoJpCBFPy5g74pRhzW7XZXj66QkbgY5J3zSEQGr/49v','user','ak_778b101ed649bd05','2023-01-09 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$HcElEpo3y9GbZuOg46RhI1be0uWZbLDQxMnAyd9.2aDqK0r84OA7z','user','ak_ea6205a1fd068008','2023-01-07 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$eDTMOVdRsJQf0Yia5UjTXkCe51/rCsU92djPeCx9W9OZ7YGOabD/m','user','ak_623b5333b3ac92e3','2023-08-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$e7IEvgcJzkVC2iW.n2CDb4Cu.QgXpiQcugVlD0OmMTk.SgNrDOMO7','user','ak_d7964d19d511a640','2023-04-20 10:06:00',NULL);

