Spaces:
Sleeping
Sleeping
Download schema.sql from ioget/waste-classification-app: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/spaces/ioget/waste-classification-app/resolve/main/schema.sql
- Command line
-
hf download hf://spaces/ioget/waste-classification-app/schema.sql
-
curl -L -o schema.sql https://huggingface.co/spaces/ioget/waste-classification-app/resolve/main/schema.sql
558 Bytes
| CREATE TABLE IF NOT EXISTS users ( | |
| id INTEGER PRIMARY KEY AUTOINCREMENT, | |
| username TEXT UNIQUE NOT NULL, | |
| email TEXT UNIQUE NOT NULL, | |
| password_hash TEXT NOT NULL, | |
| created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP | |
| ); | |
| CREATE TABLE IF NOT EXISTS predictions ( | |
| id INTEGER PRIMARY KEY AUTOINCREMENT, | |
| user_id INTEGER NOT NULL, | |
| predicted_class TEXT NOT NULL, | |
| confidence REAL NOT NULL, | |
| image_url TEXT, | |
| all_predictions TEXT, | |
| created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | |
| FOREIGN KEY (user_id) REFERENCES users(id) | |
| ); | |