@@ -32,10 +32,11 @@ class Direction(str, Enum):
3232
3333
3434class Room (BaseDbModel ):
35- name : Mapped [int ] = mapped_column (String , nullable = False , unique = True )
36- direction : Mapped [int ] = mapped_column (DbEnum (Direction , native_enum = False ), nullable = True )
37- building : Mapped [int ] = mapped_column (String )
38- is_deleted : Mapped [int ] = mapped_column (Boolean , default = False )
35+ name : Mapped [str ] = mapped_column (String , nullable = False , unique = True )
36+ direction : Mapped [Direction ] = mapped_column (DbEnum (Direction , native_enum = False ), nullable = True )
37+ building : Mapped [str ] = mapped_column (String , nullable = True )
38+ building_url : Mapped [str ] = mapped_column (String , nullable = True )
39+ is_deleted : Mapped [bool ] = mapped_column (Boolean , default = False )
3940
4041 events : Mapped [list [Event ]] = relationship (
4142 "Event" ,
@@ -47,12 +48,12 @@ class Room(BaseDbModel):
4748
4849
4950class Lecturer (BaseDbModel ):
50- first_name : Mapped [int ] = mapped_column (String , nullable = False )
51- middle_name : Mapped [int ] = mapped_column (String , nullable = False )
52- last_name : Mapped [int ] = mapped_column (String , nullable = False )
51+ first_name : Mapped [str ] = mapped_column (String , nullable = False )
52+ middle_name : Mapped [str ] = mapped_column (String , nullable = False )
53+ last_name : Mapped [str ] = mapped_column (String , nullable = False )
5354 avatar_id : Mapped [int ] = mapped_column (Integer , ForeignKey ("photo.id" ))
54- description : Mapped [int ] = mapped_column (Text , nullable = True )
55- is_deleted : Mapped [int ] = mapped_column (Boolean , default = False )
55+ description : Mapped [str ] = mapped_column (Text , nullable = True )
56+ is_deleted : Mapped [bool ] = mapped_column (Boolean , default = False )
5657
5758 avatar : Mapped [Photo ] = relationship (
5859 "Photo" ,
0 commit comments