-- Host: db-master-5.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=33290;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$InKEgnduVOhF8uRijB.cusKBkvzqd5AsKMUGY5QT2m4mc5aSmY60i','user','ak_30d0e656e931e047','2023-08-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$7Vn6hERUnC77MxSKFR8ZxgHsu5lPxS7h9HgUr1GH8FyUgIhMHjnNa','user','ak_a6524d9650382552','2023-10-10 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$NgepurnsVmly8Ax3dntKuC/TJ.0ByrT2yGLOme/li6m6EtsUfh8R2','user','ak_479d14f542fec983','2023-03-02 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$WMdo6EL.O0X7GepW4C5CnYaAOKRhQv9tQYwf4nHGjFOo5Q79kDiad','admin','ak_9e211864cef2cdc9','2023-12-17 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$WrkzwxwLn9fw5njJ7qnrgg5ah2jIKk9GlHVGXk/AKMEcUW5VpI.oF','user','ak_043b4f7a112a77ac','2023-03-20 10:08:00',NULL);

