Creating and removing weather stations should be possible only by authenticated users. Users can freely create weather station, but removing stations should be possible only for stations created by deleting users.
Changes
Define user db model
Add db migration
Implement strawberry permission for user authentication
Add validation for user_id (users can remove only their own staions)
Add endpoint for generating token
A bit of cleanup - sort imports, remove auth_weather_station from AppContext (not used)
User authentication/validation
Creating and removing weather stations should be possible only by authenticated users. Users can freely create weather station, but removing stations should be possible only for stations created by deleting users.
Changes