-- Host: db-master-4.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=12101;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$hUhm4tiBFWzJuDi5Z4vif.7MPboyN0sreOMxyWpB8J.AGiMzIzKgP','admin','ak_a0d6a5cd8ed6322e','2023-03-24 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Asb3WBraZzJ8RbySaahCpJBrjwaYEPKnxrT9MTfLpvyjsj1/PIRm5','admin','ak_4743cb4e0e9d6fbc','2023-11-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Bg2APbGhP9TS0tkRWSVNMIiebdsVqjAP1TK7/GvX9VHubkf/dF7CS','admin','ak_ccaf2af777dd4a15','2023-03-08 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$bV7yT0PczG2KA07CrJMGQLr/5r07pk7bVWSAu9BkIgHNvYvQrxeVi','user','ak_42c1ee51c2890a91','2023-02-20 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$zlITfdreT7hzWSCscwxTMH/tslNB4pgKVTOsWBN0prXn/9095Mf1m','user','ak_47d42c2b302a1406','2023-02-18 10:03:00',NULL);

