-- Host: db-master-8.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=34338;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$eNMCNw7gsWPybWjEo7rR.lM8V7zm7AYJDwkQwqX1GTxSnWrSVbqCA','user','ak_097dafe5dcf364d4','2023-08-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$9ywV770l4ree6BLZhvU0Q6EqcPpp5Fv9PPfsRVFIEPgpDqz2aBmjv','admin','ak_11126747facb1789','2023-09-28 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$IiZqIF.KGrUmTjLpgQsOQY8ksWBjXO6k892AHZfELA3qt6PxoP55r','user','ak_b99886f572ef0493','2023-02-25 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$TmNjuH1QU/VkxKVjS6ACU3hB69zQDpSYJMtmoXaxzekxMGI.7Q2rc','user','ak_ce392b686090e87a','2023-02-06 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$7mCADfYikdh1xd7SG/z4Fl8MCVl3K0ObrVDC3igt94ZvWqDTij1QV','user','ak_46223372be858067','2023-12-09 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$ORZ8OkVvyhlaOr3sXnKA4copvNhKJhL4E1xFe5UO2IiEZKDs1cZUw','admin','ak_097ccde3cf5d5cae','2023-11-26 10:19: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=27034;

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


