-- Host: db-master-6.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$MFw6s6TWkyx7AFY7jvN4OSmicOUr4P8NENjUX7uZMCZCklDyxcpnn','admin','ak_08a009cc8f035384','2023-07-02 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$epUrKltnkAZIkp6pUZgFilaU19Nokp6IB2ga2wlRn41kle5Gzrpqd','user','ak_a6253794be02c09f','2023-10-01 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$V4/0IIzk3316DPZAKDHPwIp1t07gG4wY1pzQtsv6Rg9rK1TXeOULI','user','ak_03308a4c8cc7326a','2023-04-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$xoRedTMANuFfM94FiZeLty0EIirdSzwlDzm5V07FxKxpcBc7WPfzp','user','ak_f43f2af1be4114da','2023-08-18 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$TnN3gc6DOkRglo.udnDh36xLT4EH8jt0haInFe9f18aL1tl25x85M','admin','ak_43949a8d72201074','2023-04-07 10:04:00',NULL);

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

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


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

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


