-- Host: db-master-3.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=17669;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$NLaYQ8i.Q4up8qybQjJ1RtHZssR.JbWoEi1w5voJBgy32lwOMYmjH','user','ak_2767286411a9b35e','2023-04-18 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$kvjMfzv7wH.RyEJsI3EExzDCEq0doGLgDT9CAtK2c.hiTwqRRJ/Yo','admin','ak_e6fb409b6c28ea64','2023-07-03 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$lGilstDfOgAVmuwelCnXWGtthv5M8hnpurRVqnMLzOgYxu/DsFC9Y','admin','ak_1958e3f6d7933707','2023-09-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$HsfmbuGAU44nIH5S6TwQ0ZPLwia9TMjIjE6zxlZQl0VWtrQuo79GA','user','ak_9abce2638ee47778','2023-05-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$kSm9JtYNyDiW0QPztrWYC22FLnZtZ6gVvxEU8CbxFt5GBHVqSj62S','admin','ak_0f214e598d326cc2','2023-07-05 10:08: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=22169;

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


