diff --git a/src/dispatch/signal/models.py b/src/dispatch/signal/models.py index c50857c221ca..87371134cee4 100644 --- a/src/dispatch/signal/models.py +++ b/src/dispatch/signal/models.py @@ -4,7 +4,6 @@ from pydantic import Field from sqlalchemy import ( - select, Boolean, Column, DateTime, @@ -17,7 +16,7 @@ UniqueConstraint, ) from sqlalchemy.dialects.postgresql import JSONB, UUID -from sqlalchemy.orm import relationship, column_property +from sqlalchemy.orm import relationship from sqlalchemy_utils import TSVectorType from dispatch.auth.models import DispatchUser @@ -237,17 +236,6 @@ class SignalInstance(Base, TimeStampMixin, ProjectMixin): signal = relationship("Signal", backref="instances") signal_id = Column(Integer, ForeignKey("signal.id")) - signal_name = column_property(select([Signal.name]).where(Signal.id == signal_id)) - signal_description = column_property(select([Signal.description]).where(Signal.id == signal_id)) - - search_vector = Column( - TSVectorType( - "signal_name", - "signal_description", - weights={"signal_name": "A", "signal_description": "B"}, - ) - ) - # Pydantic models class Service(DispatchBase):