-- Host: db-master-4.internal    Database: production_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=11452;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$koyS6/INg0BLo1/vBugeJ62EE87X8LUrZiKae80kzrGdzr0B7xJfU','user','ak_4c36e1bd891f21de','2023-03-17 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$/r9AAD9pwdVvL7GEK2QafC8Ag6dPnRYv4VLmYDG2CUCMCbnlLCmTf','admin','ak_ce5adcd9dfe45bc2','2023-12-02 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$rcw.W08lqNULa3QrgU9ViTaaicg/aR7OLXDTHRxTo9PNQAdZFhvZN','admin','ak_cb03b45493b5bd81','2023-04-02 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$PfNnXqe6T/SCAW.d7R4dgXa0P35ioSWbzELZi2s1CZsd.5/AR7U0o','admin','ak_9768f9586016804d','2023-10-26 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$.4dudZ0taCpX5g4Lig/KIwvw8Xjaiu785ZTc2RFmdXVxFAqvSAMR0','user','ak_3e4ae45f70ad481f','2023-01-27 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=20762;

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


