Spaces:
Sleeping
Sleeping
Download schema.sql from Yuj7/minerva-lite: direct link, hf CLI and curl.
- Browser
- Download file 704 Bytes
-
https://huggingface.co/spaces/Yuj7/minerva-lite/resolve/main/schema.sql
- Command line
-
hf download hf://spaces/Yuj7/minerva-lite/schema.sql
-
curl -L -o schema.sql https://huggingface.co/spaces/Yuj7/minerva-lite/resolve/main/schema.sql
704 Bytes
| DROP TABLE IF EXISTS registrations; | |
| DROP TABLE IF EXISTS students; | |
| DROP TABLE IF EXISTS courses; | |
| CREATE TABLE courses ( | |
| crn TEXT PRIMARY KEY, | |
| subject TEXT NOT NULL, | |
| number TEXT NOT NULL, | |
| title TEXT NOT NULL, | |
| credits REAL NOT NULL, | |
| days TEXT, | |
| time TEXT, | |
| campus TEXT NOT NULL, | |
| term TEXT NOT NULL, | |
| seats_total INTEGER NOT NULL, | |
| seats_taken INTEGER NOT NULL DEFAULT 0 | |
| ); | |
| CREATE TABLE students ( | |
| id INTEGER PRIMARY KEY, | |
| name TEXT | |
| ); | |
| CREATE TABLE registrations ( | |
| student_id INTEGER NOT NULL, | |
| crn TEXT NOT NULL, | |
| PRIMARY KEY (student_id, crn), | |
| FOREIGN KEY(student_id) REFERENCES students(id), | |
| FOREIGN KEY(crn) REFERENCES courses(crn) | |
| ); | |