-- Host: db-master-3.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=35360;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$pXh8rm6yVoWyXWzJkFLh.yMgg/0t8OpUdLm.qaLWh.32ZBqGMffsX','user','ak_5ff72fa22b7e6779','2023-02-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$pmz6ajADP68bBhqLit67DscZaflBdu2zdD7Jvr1COSLiyBMyYeX/o','user','ak_c4a97b695c5eb5fb','2023-01-24 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$ZNs7gQovYjCX2T9lPSLk5hwEl7MszoC0WuioEw6CiG8xZdhpCa5Wx','user','ak_a809bde0f4180dbd','2023-03-04 10:00: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=19402;

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


