Download Backend/database/schema.sql from Mey-agen/MVP: direct link, hf CLI and curl.
- Browser
- Download file 533 Bytes
-
https://huggingface.co/spaces/Mey-agen/MVP/resolve/main/Backend/database/schema.sql
- Command line
-
hf download hf://spaces/Mey-agen/MVP/Backend/database/schema.sql
-
curl -L -o schema.sql https://huggingface.co/spaces/Mey-agen/MVP/resolve/main/Backend/database/schema.sql
533 Bytes
| CREATE TABLE IF NOT EXISTS customers ( | |
| id INTEGER PRIMARY KEY AUTOINCREMENT, | |
| first_name TEXT NOT NULL, | |
| last_name TEXT NOT NULL, | |
| email TEXT UNIQUE NOT NULL, | |
| created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP | |
| ); | |
| CREATE TABLE IF NOT EXISTS orders ( | |
| id INTEGER PRIMARY KEY AUTOINCREMENT, | |
| customer_id INTEGER NOT NULL, | |
| product_name TEXT NOT NULL, | |
| amount REAL NOT NULL, | |
| status TEXT NOT NULL, | |
| order_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | |
| FOREIGN KEY (customer_id) REFERENCES customers(id) | |
| ); | |