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


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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=8340;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$y5jZochGn/EysR/u0rY/kej26DNceI4z7jspGXYGp6S2tVNrvzQUQ','admin','ak_c9ca66e049dab3ff','2023-02-22 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$aZkXRGaRsvGxkUaz94kDvntAQ48k4nasEtpWHX.cj9VaarCMN3PKL','user','ak_4a4a0d78209892d4','2023-06-19 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$2sEiocTpQOFOjwdEpCVHZLqRh9bElVm/QuPOAKHh4Abc6WG4Ya4e9','admin','ak_8a6db6bda5d264b7','2023-11-08 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$xVn7vMa.GzL4JC/RLfP2LcBT/A664pnU26QsrDEs93VPj6zan/I9q','admin','ak_9451b335579ff026','2023-08-05 10:04:00',NULL);

