Spaces:
Configuration error
Configuration error
Commit History
-
You are a professional full-stack web developer assistant.β
Verified signatureBuild a complete website project for a Lost & Found Management System, meeting these specifications: π Website Overview The website supports 3 roles: Finder β submit reports about found items, upload item photos/details, track report status, respond to verification requests, and view notifications. Owner β browse or search items, claim items by submitting proof, track claim status, and view notifications. Admin β manage users (finders/owners), manage admins, verify reports and claims, manage storage locations, and review system metrics (login hardcoded in PHP). π Required Pages (minimum 9) home.php β Homepage showing welcome message, quick search for items, dashboard overview, and recent announcements. login.php β Login page for all users and admins (email/username + password). dashboard.php β Role-specific dashboard: Finder: submitted reports, recent updates. Owner: saved searches, claim status. Admin: pending verifications/claims. report_item.php β Finder: create new rβ¦8df07b6
-
-- Users (includes Admins via role or flag)β
Verified signatureCREATE TABLE User ( userID INT AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) UNIQUE NOT NULL, email VARCHAR(100) UNIQUE NOT NULL, password_hash VARCHAR(255) NOT NULL, is_admin BOOLEAN DEFAULT FALSE, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); -- Reports CREATE TABLE Report ( reportID INT AUTO_INCREMENT PRIMARY KEY, userID INT NOT NULL, timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, status ENUM('pending', 'verified', 'rejected') DEFAULT 'pending', FOREIGN KEY (userID) REFERENCES User(userID) ON DELETE CASCADE ); -- Items CREATE TABLE Item ( itemID INT AUTO_INCREMENT PRIMARY KEY, reportID INT NOT NULL, description TEXT NOT NULL, category VARCHAR(100), status ENUM('lost', 'found', 'in_storage', 'disposed') DEFAULT 'lost', FOREIGN KEY (reportID) REFERENCES Report(reportID) ON DELETE CASCADE ); -- Verifications CREATE TABLE Verification ( verificationID INT AUTO_INCREMENT PRIMARY KEY, reportID INT NOT NULL, verifierID INT NOT NULL, -- who performed the verification date DATE NOTβ¦fb3d3c6 -
initial commit
Verified signature76a93c4