-- Host: db-master-7.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$6P1lQex3q76e1BEJMJnI9vNR1rp/QBxE81UWvvtHB37BPbpGbr2wh','user','ak_745481e7aacd057f','2023-02-09 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$2Pc8CHY6DaaFgDFOc4RuCEr4jQWLnDdhSNtDEER9ijVVCd5JqNC4K','user','ak_9ece42b0c416df26','2023-04-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$BkUsJa5UKWPJQkfStbbrtbSD9yiqLFpNdN/3FDm0aSdZS3zOJwhRH','admin','ak_25409f76d4038dd8','2023-05-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$OZBP3tgNrr2hx3heOVdsuBsAFG7KV/YDK1GmV7yxbOMPYWfrwdpYx','user','ak_6034e95c504ce2c3','2023-01-27 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$RQTSGN.FC88q/OBPklsmpo/cwSD9UPQL44aFsge.vwnGb9LUIHxi5','user','ak_ba44632ea552ac0c','2023-03-09 10:07:00',NULL);

