-- Host: db-master-9.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=1986;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$QQjwSxxFBQlqEu8cOA23ubM1pxTtoPY8de5xxCbvEXaQRgwo9AlxJ','user','ak_dbd4025dc3fda810','2023-05-27 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$4PA3oI8HcfXbMaMshUjsyPV6YyBP3hKHcVvex0xbEWYKzM9ffdVOH','user','ak_be4ec84eee2aa608','2023-07-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$xM9BUL3dBqDwZo.PmA2Q1ACM4P/zE5SR5AYJPLZRkKVipQMZ9fTLX','user','ak_3af2c2accb77a720','2023-12-08 10:07: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=33345;

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


