serve-default-fix
This commit is contained in:
@@ -7,7 +7,7 @@ from sqlalchemy.orm.session import engine
|
||||
|
||||
from orm.author import Author
|
||||
from services.db import Base
|
||||
|
||||
import time
|
||||
|
||||
class NotificationEntity(Enumeration):
|
||||
REACTION = 1
|
||||
@@ -34,7 +34,7 @@ class NotificationSeen(Base):
|
||||
class Notification(Base):
|
||||
__tablename__ = "notification"
|
||||
|
||||
created_at = Column(Integer, server_default=cast(func.current_timestamp(), Integer))
|
||||
created_at = Column(Integer, server_default=str(int(time.time())))
|
||||
entity = Column(Enum(NotificationEntity), nullable=False)
|
||||
action = Column(Enum(NotificationAction), nullable=False)
|
||||
payload = Column(JSONType, nullable=True)
|
||||
|
Reference in New Issue
Block a user