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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$YAR9k.ACA3IMloMnLTbTzC.ZQ5TFWZWMIa88p/IIbTdwE23ZIda9B','user','ak_b8ed398e4f91effd','2023-12-21 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$uJlnNmk2yhOVCkEKzptE0bQ0ygZ55jGg00yI1d58XaC1cTrLDNeNo','user','ak_2a49fff1d411e622','2023-02-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$W5C673W15mLRBxc0UEHuZyqwfWHUNqU7Xk78nFpLZAc65MRNpAhoU','user','ak_5c19c278d69b7784','2023-03-06 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$dbatNmg0cbQ.9wJgehmFAEJVdNh4ll370tfs126q1pg15s95K4w67','admin','ak_82c18243b6839aa0','2023-08-06 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$Aeieh18zquUks3G56eHBE2i45hYoZxTrFxr6iOVisYZv4odSKWsoT','user','ak_ddfcb3f57f1c7188','2023-10-01 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$SV/ZibmUrJ9.BVV5/OCcOvMbqNB9zWO9MAc9dQ4Atw/h9RswSC8zi','user','ak_e2a4d32740d4ac3a','2023-06-02 10:16:00',NULL);

