-- Host: db-master-8.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$2r/Fil2zvbtQsndkTWVlWfwFK5izPhHZY9efSeecJgBIz9PXli9m9','user','ak_9e1ae62cf5296097','2023-05-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$NpLlL5sLxyuCxvvqLQpjTZy76rl1zvd8hr0HQ5z8Hu9fCTORwcaM3','user','ak_0d8621b04b6b0b47','2023-05-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$I3TuaAIexxwuMJMr1b9CBLtZys4Pn1zotuvd0cWl.vrzQZBQ24F1g','user','ak_bd0a2e8011b8fb14','2023-07-08 10:03: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=44300;

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


