searchable
All checks were successful
Deploy on push / deploy (push) Successful in 4m21s

This commit is contained in:
2024-02-25 16:43:04 +03:00
parent 4b83f5d0f5
commit 2222f6fc19
5 changed files with 40 additions and 65 deletions

View File

@@ -1,6 +1,8 @@
import time
from sqlalchemy import JSON, Boolean, Column, ForeignKey, Integer, String
from sqlalchemy_utils import TSVectorType
from services.db import Base
@@ -38,3 +40,5 @@ class Author(Base):
last_seen = Column(Integer, nullable=False, default=lambda: int(time.time()))
updated_at = Column(Integer, nullable=False, default=lambda: int(time.time()))
deleted_at = Column(Integer, nullable=True, comment='Deleted at')
search_vector = Column(TSVectorType("name", "slug", "bio", "about"))