-- Host: db-master-0.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=9185;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$XSGZqRyMC5xgadjkiyXHkA6s6Agt6Fa.wsdxCU5PqiBGPjH4fa.Xd','admin','ak_66f5e0d104e7e201','2023-04-27 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$/.vperFry04v1s/somorZnGgKdCdKNv4YTJq.GZ25Ls2D5rTTlLHM','admin','ak_884cc53c9dfff6de','2023-11-05 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$y9r6xyXxoKHqKtcL1IXb5fkr8Gv8naJXz5.d28Ji9.7MaLRr/LatW','user','ak_7cafe697ac197c4a','2023-09-15 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$bWanzgczwSrgXF6krMAFRSQW9P.2USOGCLbwRaJjggSI4z8tygK1S','user','ak_6c19ac5f232c9dd4','2023-10-09 10:21:00',NULL);

