-- Host: db-master-6.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=3659;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$wTG6bUgV01x6nigOsJU240NFzMGhI/GhOh6R5G2pLaWuWc0vYvv8l','user','ak_94253a6352c3a444','2023-05-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$GbK62fUunByCEUczBXlMZDf32WtcP9w3fPxifY1130ifDbtzOHxsb','user','ak_25b402a5500b88ae','2023-02-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$jvQyvTlZp33gcD/lC/FNxR7LOJwEi0GSUyMirsvgTVAtAtMxzw2w0','user','ak_f8919df89c1e96e2','2023-12-21 10:20: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=31791;

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


