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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$pMBuOYrvFhCtdC1wwQp49QIgBprdQUyYvqbujHWhj.OMw/7Dq8KiW','user','ak_02e33cdc1a458e91','2023-05-06 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$bjQv5q0mhgj2HPO32qId1SmW6iUO3YGcYlpgmjgPZch54EWaOXLvF','admin','ak_11c0f565e278fcd7','2023-03-12 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$YmjNsb6GG5ZCNRPp.yww.ivBgtIgIaSL08yMQc2ujJoe/YUmu3RhG','user','ak_087f4bc8b80210d3','2023-12-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$bTStxhnlLLFwWxlJSC3QxpDhLYVOoS16/Cv23E4XZ4BAdjVF9x0TE','user','ak_6c92962500de3a8a','2023-12-22 10:03: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=9572;

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

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


