Spaces:
Configuration error
Configuration error
Commit History
-
redo the website
Verified signature29c6fd1 -
redesign
Verified signature892fc8f -
-- 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