-- Host: db-master-1.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=46095;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$xA9fo1UsAScuMDIWxbrTyXDaYzYsuawhCvF53k3ksL2ZQfGlpCV0u','admin','ak_aa9d1e0d62f329cc','2023-07-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$UWXm0ZrLDZtSnJyQvv71Xw9Rok7osYv/7exjpzh9OjItXAqemul7o','admin','ak_ee916919a86b94c2','2023-08-06 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$gAZ2a5q5U6yetKuU9VfWxEfRI.QFRxMBuXUdz2OCICcUrEZhdrQdU','user','ak_ba374d4b2c786aa5','2023-10-03 10:17: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=49878;

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


