update-api-3
All checks were successful
Deploy on push / deploy (push) Successful in 1m12s

This commit is contained in:
2024-10-21 12:15:44 +03:00
parent 62f2876ade
commit c6f160c8cf
4 changed files with 47 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
import time
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
from sqlalchemy import ARRAY, Boolean, Column, ForeignKey, Integer, String
from services.db import Base
@@ -24,3 +24,5 @@ class Topic(Base):
pic = Column(String, nullable=True, comment="Picture")
community = Column(ForeignKey("community.id"), default=1)
oid = Column(String, nullable=True, comment="Old ID")
parent_ids = Column(ARRAY(Integer), nullable=True, comment="Parent Topic IDs")