-- Host: db-master-5.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$mTHuvaTjjnwwC3eQThOvwUnizn1Fg539qHPO2Vu0.LFCJwehn5uAj','admin','ak_1cac9927be5d7bee','2023-03-15 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$224XzqitrASQJj/SMbTO2fNnR7gj/bI3hVihRWVsJguLzZrfJT5Ij','user','ak_8a05f9cd18b71562','2023-11-02 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$9ceNtIP681jUeOQqTBgtz7MVkTlVE8ekrkOVmeCx/MJa0mIzQou8s','admin','ak_c3231698b148dcc4','2023-02-14 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$fXB8jFlZQBoNvkS8lISMXTBJITOhwV2jQZ/UL8N32pnQSGp8gqNRe','admin','ak_c7d31e6cc03f0f03','2023-09-06 10:08:00',NULL);

