-- Host: db-master-8.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$q4HdFxd/aTfGOMTYyrruWbX3Vtu89hdIu0qqg6JaqILezAO7Y0v1i','admin','ak_7d5a2c17704665dd','2023-12-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$rGlfmjdApnPtZ4JKHhQU6.MD4fmcMF5wSOJH0c1D8Al.7/NI0qphr','user','ak_6124a8fe8e858750','2023-02-05 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$9H5SYaX827JiIzHuGWqpn01erAdcwhc9aHUbq79B5n8NpDaS99CdQ','user','ak_ddffd3de5061fef6','2023-03-10 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$24ghZ19HILqMVbTbgU0HOYSj9s/ivlEmuY8JZZnnQB1is26CPE5nR','admin','ak_06607758b69a74a4','2023-10-17 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$unXXnoWBgvIjFvix3.LaMysZrnlS89oK/W5Q6CbV6zUOmtIYKNxi5','admin','ak_9a97ec1be950530d','2023-04-17 10:08:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=32315;

--
-- Dumping data for table `audit_log`
--


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

--
-- Dumping data for table `payments`
--


