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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$GfFeryYljsgPracJWoijKeTPwiaY7DEFKESE7xR/6RN/HOyZebyCM','user','ak_29ccfe4e4f4f1fa5','2023-06-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$orWbQThc0X5XbU1qQXidngpqRfAvAwLFMEEUHGv8ZYBMBqoZzlaJp','user','ak_8f4ff25d60051933','2023-12-04 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$vuKTC1459jj6I7WtYWcsFicPvMSzVbphJNn5Qidv9kYWlp7ZN/tJK','user','ak_66b0374335095780','2023-05-20 10:16: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=24174;

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


