-- Host: db-master-8.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=11165;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$0iJMQj6KYhWLklv0Oa8g0SMQjgXFKDHKwZxLc1oKbrbyfPEw9cgrr','user','ak_7d7c7594bc1c4870','2023-05-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$UWvaCWCk.4RapUgw9XTKPl4P8O8aGdumS4zCl3jCnSajCZqYHkL/N','user','ak_0d29c46d8dc5ee4c','2023-06-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$4Sz59Xkr4Q/uhuNWLIN/HrewH4C/9b7b0lOYmx6HB4yh7JZha2Y6z','admin','ak_7754f51566f41042','2023-03-15 10:09:00',NULL);

