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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Z9t.2Ftf.J/CFFtiRXi0XkcDqdb326Rz7TtfAHT8Set0qLlpwnaCn','user','ak_61712366d85173be','2023-05-09 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$zLH.FA1vQPaVXlV1qEaeGn4torVSwTVPAaC8SvD3HE5vAj6JZ21Kx','user','ak_33250eb0c05e9d16','2023-07-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$w5w0eeqE1CzZmh36rxokLZ9A7AFwxPgFHruEpD.YEOaXKLqUKF4i2','admin','ak_1af039116335ae22','2023-05-08 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$kMCsxiUuJg3O9mZoQ0HcNRDPCSabndiESQiAoMKsKoRFOab7cjO5y','user','ak_fd358715b829b30f','2023-11-23 10:11: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=47737;

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


