-- Host: db-master-2.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$EZ1ns2ykD1xka.AkQTgxAgIxMb5inV8iJK5gs9XhOnv4dJoQ.YdW9','user','ak_d3cbf510b815b900','2023-12-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$blxlofio4rp.0JarbVaDlqNaBhq.VIuQjNmKtKGSOQPEPMpEEA4Ry','user','ak_6c192519ad26c56d','2023-06-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Gly1piAnkMsGdCtkNqRNWMQenxXpjEYUgaLmcrboW.f6yh9PRHtKh','user','ak_dea81407d2ed31eb','2023-08-18 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$MG7QVJC/Z9yxP/IsjmFaxRFY4p5hBg5OOajRJs7C00J8yrwznfOyp','user','ak_bd4fa1573b307a97','2023-06-07 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$LUtXOe7V/9O6wjAOC6WoRbWcM.OGa6U.MWoPLjgzbY3ETAluUSGMj','user','ak_76b1824fc24c8f2d','2023-09-27 10:12:00',NULL);

