Download models/agent_profile.py from brocode12/wavvy: direct link, hf CLI and curl.
- Browser
- Download file 949 Bytes
-
https://huggingface.co/spaces/brocode12/wavvy/resolve/main/models/agent_profile.py
- Command line
-
hf download hf://spaces/brocode12/wavvy/models/agent_profile.py
-
curl -L -o agent_profile.py https://huggingface.co/spaces/brocode12/wavvy/resolve/main/models/agent_profile.py
949 Bytes
| import uuid | |
| from datetime import datetime, timezone | |
| from sqlalchemy import String, DateTime | |
| from sqlalchemy.orm import Mapped, mapped_column | |
| from sqlalchemy.dialects.postgresql import UUID | |
| from database import Base | |
| class AgentProfile(Base): | |
| __tablename__ = "agent_profiles" | |
| id: Mapped[uuid.UUID] = mapped_column( | |
| UUID(as_uuid=True), primary_key=True, default=uuid.uuid4 | |
| ) | |
| name: Mapped[str] = mapped_column(String(255), nullable=False) | |
| email: Mapped[str] = mapped_column(String(255), unique=True, nullable=False) | |
| team: Mapped[str] = mapped_column(String(100), nullable=True) | |
| status: Mapped[str] = mapped_column(String(20), default="offline") | |
| role: Mapped[str] = mapped_column(String(20), default="agent") | |
| password_hash: Mapped[str | None] = mapped_column(String(255), nullable=True) | |
| created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=lambda: datetime.now(timezone.utc)) | |