35
35
class User (BaseUserModel , Base ):
36
36
__tablename__ = "users"
37
37
38
- id : Mapped [int ] = mapped_column (primary_key = True , autoincrement = True )
39
- username : Mapped [str ]
40
- description : Mapped [str | None ]
41
- email : Mapped [str ]
42
- password : Mapped [str ]
43
- picture_url : Mapped [str | None ]
38
+ id : Mapped [int ] = mapped_column (primary_key = True , autoincrement = True ) # type: ignore[assignment]
39
+ username : Mapped [str ] # type: ignore[assignment]
40
+ description : Mapped [str | None ] # type: ignore[assignment]
41
+ email : Mapped [str ] # type: ignore[assignment]
42
+ password : Mapped [str ] # type: ignore[assignment]
43
+ picture_url : Mapped [str | None ] # type: ignore[assignment]
44
44
45
- created_at : Mapped [date ]
46
- updated_at : Mapped [datetime ]
45
+ created_at : Mapped [date ] # type: ignore[assignment]
46
+ updated_at : Mapped [datetime ] # type: ignore[assignment]
47
47
48
- access_level : Mapped [str ]
49
- premium_level : Mapped [str ]
50
- telegram_id : Mapped [int | None ]
51
- is_verified : Mapped [bool ]
48
+ access_level : Mapped [str ] # type: ignore[assignment]
49
+ premium_level : Mapped [str ] # type: ignore[assignment]
50
+ telegram_id : Mapped [int | None ] # type: ignore[assignment]
51
+ is_verified : Mapped [bool ] # type: ignore[assignment]
52
52
53
- artist_id : Mapped [int ] = mapped_column (ForeignKey ("artist_profiles.id" ))
54
- producer_id : Mapped [int ] = mapped_column (ForeignKey ("producer_profiles.id" ))
53
+ artist_id : Mapped [int ] = mapped_column (ForeignKey ("artist_profiles.id" )) # type: ignore[assignment]
54
+ producer_id : Mapped [int ] = mapped_column (ForeignKey ("producer_profiles.id" )) # type: ignore[assignment]
55
55
56
56
artist_profile : Mapped [ArtistProfile ] = relationship (
57
57
argument = "ArtistProfile" ,
@@ -67,47 +67,47 @@ class User(BaseUserModel, Base):
67
67
single_parent = True ,
68
68
lazy = "joined" ,
69
69
)
70
- licenses : Mapped [list [License ]] = relationship (
70
+ licenses : Mapped [list [License ]] = relationship ( # type: ignore[assignment]
71
71
argument = "License" ,
72
72
secondary = author_to_licenses_association ,
73
73
back_populates = "author" ,
74
74
lazy = "selectin" ,
75
75
)
76
- followed_squads : Mapped [list [Squad ]] = relationship (
76
+ followed_squads : Mapped [list [Squad ]] = relationship ( # type: ignore[assignment]
77
77
argument = "Squad" ,
78
78
secondary = follower_to_squads_association ,
79
79
back_populates = "followers" ,
80
80
lazy = "selectin" ,
81
81
)
82
- followed_artists : Mapped [list [ArtistProfile ]] = relationship (
82
+ followed_artists : Mapped [list [ArtistProfile ]] = relationship ( # type: ignore[assignment]
83
83
argument = "ArtistProfile" ,
84
84
secondary = followers_to_artists_association ,
85
85
back_populates = "followers" ,
86
86
lazy = "selectin" ,
87
87
)
88
- coauthored_playlists : Mapped [list [Playlist ]] = relationship (
88
+ coauthored_playlists : Mapped [list [Playlist ]] = relationship ( # type: ignore[assignment]
89
89
argument = "Playlist" ,
90
90
secondary = author_to_playlists_association ,
91
91
back_populates = "authors" ,
92
92
lazy = "selectin" ,
93
93
)
94
- saved_playlists : Mapped [list [Playlist ]] = relationship (
94
+ saved_playlists : Mapped [list [Playlist ]] = relationship ( # type: ignore[assignment]
95
95
argument = "Playlist" ,
96
96
secondary = saver_to_playlists_association ,
97
97
lazy = "selectin" ,
98
98
)
99
- followed_producers : Mapped [list [ProducerProfile ]] = relationship (
99
+ followed_producers : Mapped [list [ProducerProfile ]] = relationship ( # type: ignore[assignment]
100
100
argument = "ProducerProfile" ,
101
101
secondary = followers_to_producers_association ,
102
102
back_populates = "followers" ,
103
103
lazy = "selectin" ,
104
104
)
105
- saved_albums : Mapped [list [Album ]] = relationship (
105
+ saved_albums : Mapped [list [Album ]] = relationship ( # type: ignore[assignment]
106
106
argument = "Album" ,
107
107
secondary = saver_to_albums_association ,
108
108
lazy = "selectin" ,
109
109
)
110
- followed_tags : Mapped [list [Tag ]] = relationship (
110
+ followed_tags : Mapped [list [Tag ]] = relationship ( # type: ignore[assignment]
111
111
argument = "Tag" ,
112
112
secondary = follower_to_tag_association ,
113
113
lazy = "selectin" ,
0 commit comments