Spaces:
Runtime error
Runtime error
Download app/models/users.py from abdullah090809/FastAPI-Project: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/spaces/abdullah090809/FastAPI-Project/resolve/bb4b25f33972753e5ff545649133e43bf2aeb752/app/models/users.py
- Command line
-
hf download hf://spaces/abdullah090809/FastAPI-Project@bb4b25f33972753e5ff545649133e43bf2aeb752/app/models/users.py
-
curl -L -o users.py https://huggingface.co/spaces/abdullah090809/FastAPI-Project/resolve/bb4b25f33972753e5ff545649133e43bf2aeb752/app/models/users.py
396 Bytes
| from sqlalchemy import Column, Integer, String, TIMESTAMP, text | |
| from app.database import Base | |
| class User(Base): | |
| __tablename__ = "users" | |
| id = Column(Integer, primary_key=True, nullable=False) | |
| email = Column(String, nullable=False, unique=True) | |
| password= Column(String, nullable=False) | |
| created_at = Column(TIMESTAMP(timezone=True), nullable=False, server_default=text("now()")) |