-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Description
from typing import TYPE_CHECKING
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from app.db.base_class import Base
if TYPE_CHECKING:
from .user import User # noqa: F401
class HouseItem(Base):
id = Column(Integer, primary_key=True, index=True)
title = Column(String, index=True)
description = Column(String, index=True)
#image = ??? #add here
specification = Column(String, index=True)
owner_id = Column(Integer, ForeignKey("user.id"))
owner = relationship("User", back_populates="houseitems")
or should i import another library?
Metadata
Metadata
Assignees
Labels
No labels