diff --git a/identity_socializer/db/models/relationship_model.py b/identity_socializer/db/models/relationship_model.py index d732c2e..39f2015 100644 --- a/identity_socializer/db/models/relationship_model.py +++ b/identity_socializer/db/models/relationship_model.py @@ -24,7 +24,7 @@ class RelationshipModel(Base): following_id: Mapped[str] = mapped_column(String(length), ForeignKey("users.id")) created_at: Mapped[DateTime] = mapped_column( DateTime, - default=datetime.datetime.utcnow(), + default=datetime.datetime.utcnow, ) follower = relationship("UserModel", foreign_keys=[follower_id]) diff --git a/identity_socializer/db/models/user_model.py b/identity_socializer/db/models/user_model.py index b480ee9..0b8bb8b 100644 --- a/identity_socializer/db/models/user_model.py +++ b/identity_socializer/db/models/user_model.py @@ -24,6 +24,6 @@ class UserModel(Base): blocked: Mapped[bool] = mapped_column(Boolean, nullable=False, default=False) created_at: Mapped[DateTime] = mapped_column( DateTime, - default=datetime.datetime.utcnow(), + default=datetime.datetime.utcnow, nullable=False, )