-- Host: db-master-5.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=34725;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$cGacIkldClV0EiDkFKrykDWPO1aQJB2qnnwadAs6Xnv.8UTcEW20V','user','ak_99263a417b088661','2023-04-21 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$4lcZpMRY944u5rnsDZESEm22XFq22CgKiX7AGblGq75mxYbQ.OXFu','user','ak_2e3013f8af5bbfd5','2023-03-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$1LtNQUOFb5bZwFglhFh95M3Ib9S9MYZMcqTVMrJ/Sk7nOI.bmA1pH','user','ak_e11e4a03b283aed6','2023-05-06 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$u1DbY5EUZz86PJg5J40.SXESfoxFhWicfioAzPrAr24L1NFC4Iq4U','user','ak_860d7157b248c03d','2023-10-26 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$4FhrtAx8I69G/9EIl0w2YOaGAwEnKFaU4c8bc21TLLW9YqGMuI03T','user','ak_1200d08c8e57179c','2023-11-04 10:20:00',NULL);

