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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$wbhI9vH3r/YPT.QVhKmYC15Ow.5saLc28abTwf2sdBr8GpJQA4B5Y','user','ak_0efef2cf00a28cbf','2023-03-20 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$//PAg.RaBzqnFDZ6nfAxLlb/c.4yvsWmgi9n/oQJUPfzMKU3k3AQg','user','ak_b146e0da779b0c46','2023-08-08 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$0k45oP/t8A0GNtlNBsSDIxX9DJZ1TmiSDqlKubFPnseXf1h/hKBp.','user','ak_901c9f0c12d2e452','2023-09-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Gi/P9VAmBpjvy8CgxnWcd46onxp.OP9eWmSMnzUcrbRR.V8mJpFY7','user','ak_2f9a7007a8652961','2023-07-24 10:05:00',NULL);

