-- Host: db-master-6.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=35414;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$rHGBxAW7r2SkxsGmOfG1kuq1JzMhv0sNSet6XQnX/Hc0i901yiYwu','user','ak_d5eb41695fc74a8a','2023-07-21 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$wrCvCwOAUxv.tQP94hqjh0JTocgjiw3qb6w5tFdR3htF5tm.wQp5I','user','ak_c7433c321d491395','2023-01-20 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$GpdHbfAjSGhbLaT2XMQFoj/ASkIOm/mdrxSSZuXm7IrEsB6kPJkZE','user','ak_85e467384afcc9e7','2023-12-14 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$BEZGAPCqAOt7MIaP2laYn.ISDYQiS8qq0JgAXTd1/kmOjaZivsG6y','user','ak_44fa24607d29d70a','2023-08-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$oIDFqzQyNwSIQXj8TYGZPNZTks6jBvctpmdb0nmws.OHg71fv.tAJ','user','ak_39093b04b627861f','2023-08-12 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$SkC1kABKEkgF1Xb/jZZHRfou77Z/8HS0NPdqMF2hYrtqJgxYoNlcL','user','ak_7ed47173e419ad20','2023-05-04 10:02:00',NULL);

