Buckets:

download
raw
1.02 kB
# backend/db/models/prompt.py
import uuid
from sqlalchemy import (
Column, String, Text, ForeignKey, Integer, Index
)
from sqlalchemy.orm import relationship
from backend.db.base import Base
class SavedPrompt(Base):
__tablename__ = "saved_prompts"
id = Column(String, primary_key=True, default=lambda: str(uuid.uuid4()))
name = Column(String, nullable=False)
content = Column(Text, nullable=False)
owner_user_id = Column(Integer, ForeignKey("users.id", ondelete="CASCADE"), nullable=True, index=True)
# NEW: Fields for Zoo integration
category = Column(String, nullable=True, index=True)
author = Column(String, nullable=True)
description = Column(Text, nullable=True)
icon = Column(Text, nullable=True) # Base64 icon
version = Column(String, nullable=True)
repository = Column(String, nullable=True)
folder_name = Column(String, nullable=True)
owner = relationship("User")
__table_args__ = (
Index('ix_saved_prompts_name', 'name'),
)

Xet Storage Details

Size:
1.02 kB
·
Xet hash:
b94aaac3681ecc0aba83a8e7b7a9c1ad47d00f1cd1af1376290382455c7a8336

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.