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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$8anLr2qExDhhBc2gGidA.b5SlaJIWJjIfYqoU/MOLGosEq.34x1CZ','admin','ak_8cd81e4738704168','2023-12-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$xVW1Gk1EHmTgygoPVxHQMd3G4/0ysNnCLiZa16qmVdiwTbjyqD0O0','user','ak_058c9ba828571e83','2023-11-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$XKrGOblcNOJcfsdoLs2mt7FCWWXED0FsiPmFDNGhk4ANrRNHQcexK','user','ak_45ef2ac66e2a9bcb','2023-07-16 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$n.VoA8WDkAvDv08Mx/zubZda8WAMnQ6WzIYiLyg7qsB4ODuKv8kh3','user','ak_fc74e42638bae01d','2023-03-19 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$lszw475f97RnrIup7VM4Hx7KovD468K09LkPqnRD7Cvxw8zzG9CTP','user','ak_9f664029ca8333d9','2023-11-06 10:19:00',NULL);

