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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$9zJ9dIXrrMs3xVect6LHx7NLXr5Nlznu9GmhphaO43.5kFTss6fbX','admin','ak_bee5fa4da03e4d75','2023-09-14 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$VlvTJYFijYfsYVypXBkeyc3QeM.9yoBdRC1QRDCfraWog0WtubEKq','admin','ak_8359292a44a7cca4','2023-07-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$HypPXKN/cBszIw9dc63C80YqWSlN22Tgdr/XIxQXmWykHwk73sQk8','user','ak_49f157a76273978b','2023-10-17 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$LaiUgHyaGYh7.yNH/kH/WC4KSutTz4/SqBEXM6KFQFfh6RTrJulVR','user','ak_d564a04832b36c8e','2023-11-23 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$tJ2v8uyhgfbykdhCGiRe3WukESODrOz3j5DDZJsCqrtGQnTduxj5U','admin','ak_b35c50bfc685a6ad','2023-04-24 10:09: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=27932;

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


