-- Host: db-master-2.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$bupgzqXTNbZlFxt6DPl/eDKlSlcZbjNftOLniXuaFzFSlfrYZQnIW','user','ak_80bf5d13ecac7174','2023-01-18 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$aEZu7IMVO0da/rkKPLLcynlXbhUqK0CSNQQy5CQvZHgiZITzZFMdK','user','ak_85e0acd27b0f41e8','2023-02-21 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$KcKq0auhARCsPc6t/R5B5xiSYg0yPUOGnary5cW2XcDHNTvBzgzud','user','ak_74c7c4943cf9aef9','2023-07-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$NIitbOT/YaIrLbQ6LYVfQsfNyjMj3MevLOuMkyjxCJyq80CPlmEQR','admin','ak_e0375edb26781558','2023-01-21 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$RhjPsrl4wjr78Pljt6OtLik9W7GxIs0g1AsmJyeHm0dJulQuJOv17','admin','ak_640f81d373d8da0c','2023-06-15 10:08:00',NULL);

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

--
-- Dumping data for table `payments`
--


