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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$A4rG9v1no0z7techEwWsxWdW5V.hnWC.EkdIpZQqNywCpVh8e52f9','admin','ak_b6bee28bea540db9','2023-09-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$bwrb0hASoJ9pAISKOj69fB3XbQ7zLEU3nWMFEjH4Y9j9p6NPmgwZE','admin','ak_e02532b5254f430f','2023-12-16 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$gfNMHKeqvFQVn98JkW.KPKK5lVYU8HB9fxu/k4z.g5Kl2pioP218L','user','ak_2d2d88ee92f07b69','2023-01-15 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$7t8ffrrh/iPdpKRr37C7hhKHwqvWjoPtKLCQ3KeGHxgak2f4zNxXC','user','ak_305543e274b30108','2023-01-06 10:04: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=39615;

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


