serve-default-fix
This commit is contained in:
parent
28685cba3e
commit
95e070825f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user