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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$5oIIpF9gfQcAxlbcjA3Zk4ycR0kO4aOX3p7ZNtep72jzwFYh.nYuO','admin','ak_a52d9a359221ff3f','2023-12-08 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$5EVVJhfpS43iYfK8UnYkVVqHe4Kd.x0zGxSVBL0NwbM1pRyX5UvQq','user','ak_8174ebc4f7d88b9f','2023-09-03 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Z8LhYgbdsLU3zmSo/9feAr0u0Gcl7C50JcDyQrwxgb9f55sdX7n3h','admin','ak_87690785a1465b40','2023-05-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$jS7G1n7jMWdB9tUEtoIErunwmXT7ZTIlXsodAKPnuq6zzWNfr7aX5','user','ak_ef046c26467dbea8','2023-01-07 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=42769;

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

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


