44
55class Users (BaseDBModel ):
66 __tablename__ = "user_info"
7- id : Mapped [int ] = mapped_column (Integer , primary_key = True , autoincrement = True )
7+ id : Mapped [int ] = mapped_column (Integer , primary_key = True )
88 tg_id : Mapped [int ] = mapped_column (Integer , nullable = False , unique = True )
99 name : Mapped [str ] = mapped_column (String , nullable = False )
1010 birthday : Mapped [str ] = mapped_column (String , default = None )
@@ -14,4 +14,11 @@ class Holidays(BaseDBModel):
1414 __tablename__ = "holidays_status"
1515 id : Mapped [int ] = mapped_column (Integer , ForeignKey ("user_info.id" ), primary_key = True )
1616 status : Mapped [int ] = mapped_column (Integer , nullable = False , default = 0 )
17- till_date : Mapped [str ] = mapped_column (String , nullable = False , default = "null" )
17+ till_date : Mapped [str ] = mapped_column (String , nullable = False , default = "null" )
18+
19+ class MetInfo (BaseDBModel ):
20+ __tablename__ = "met_info"
21+ id : Mapped [int ] = mapped_column (Integer , primary_key = True )
22+ first_user_id : Mapped [int ] = mapped_column (ForeignKey ("user_info.id" ))
23+ second_user_id : Mapped [int ] = mapped_column (ForeignKey ("user_info.id" ))
24+ date : Mapped [str ]
0 commit comments