-- Host: db-master-5.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=40823;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$oLnLUiLY1Lcw9uV3/RU/RO14dPhuRfNdDWe83RWJrgjjN/vJ6dU.z','admin','ak_4d3daec5680ac731','2023-05-28 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$cyXY1EUJ/cQ.MySI187L1Zc1sZT6B63Q5gbSA2R5/1v/YN0P1tHbL','user','ak_90f241d3eb789ae3','2023-04-06 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$yuoI/7g7VMbzA.f4OJpFXTnYZ7.ehQf8QtxID6Um88AXFlXiA/X9.','user','ak_0ea75968b44a2319','2023-09-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$qKAdheEBOfrKKJ/2GblIMtD8ruqNZSU9BLvxB4wFVa4FOBAnQnjjc','user','ak_4e68f9ce612cf3e3','2023-10-22 10:12: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=14172;

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


