File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,18 @@ class CreatedUpdatedMixin(SQLModel):
2828 # the possibility of a conflict entirely.
2929 #
3030 created_by_id : Optional [int ] = Field (default = None , foreign_key = "user.id" )
31- created_by : Optional [User ] = Relationship (sa_relationship = declared_attr (lambda cls : relationship (User , foreign_keys = cls .created_by_id )))
31+ created_by : Optional [User ] = Relationship (
32+ sa_relationship = declared_attr (
33+ lambda cls : relationship (User , foreign_keys = cls .created_by_id )
34+ )
35+ )
3236
3337 updated_by_id : Optional [int ] = Field (default = None , foreign_key = "user.id" )
34- updated_by : Optional [User ] = Relationship (sa_relationship = declared_attr (lambda cls : relationship (User , foreign_keys = cls .updated_by_id )))
38+ updated_by : Optional [User ] = Relationship (
39+ sa_relationship = declared_attr (
40+ lambda cls : relationship (User , foreign_keys = cls .updated_by_id )
41+ )
42+ )
3543
3644 class Asset (CreatedUpdatedMixin , table = True ):
3745 id : Optional [int ] = Field (default = None , primary_key = True )
You can’t perform that action at this time.
0 commit comments