Source code for app.models.job

from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship

from app.db.base_class import Base


[docs]class Job(Base): id = Column(Integer, primary_key=True, index=True) name = Column(String, index=True) output = Column(String, index=True) owner_id = Column(Integer, ForeignKey("user.id")) owner = relationship("User", back_populates="jobs")

Last update: Mar 10, 2024