-- Host: db-master-9.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=39437;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$tYbIB7oXzeUcRnDr6jYBcNNGmDapUHWOBJJjTDpEVy4HXjMtRg8pC','user','ak_7b605c1191caed18','2023-07-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$90j7wjex70dj9UWIdWmcUfyfqy0bTpY4tpceE8I1hWbTIVGHy0AME','admin','ak_f67e8ac8c5aac0d3','2023-05-23 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$pWuPggkAwCW00ZZhOuMvDHB6xA7GkEEVnUSUGRl3grlYBRzKVM0y2','admin','ak_d2a224947bf39f37','2023-05-03 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$8Uzqf2eUKE35M05Yc0gWu48L09OA/TMLQYWYiEfNQMYvBj8zEXRAM','admin','ak_7c01801a6839006d','2023-02-13 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$IkDIQyvsJfogDnX1/JzlMVkeAIkIUALjifdmbU7vgn41TnFmVfA83','user','ak_18ece1dde2246fa0','2023-07-13 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$0Su0RBe.YxwF95qdL8CK8Kqr.qCNGZYbyZ3uJEs0R8i2ogk1IGlMr','user','ak_067561cab59b2586','2023-03-23 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=12553;

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


