Add motivation quote feature to smoking tracking API

- Introduced a new database model `SmokeMotivationQuote` for storing motivational quotes.
- Added a new API endpoint `GET /api/v1/smoke/motivation` to retrieve motivation quotes for users.
- Updated the main.go file to include the new model in the auto-migration process.
- Enhanced smoke_routes.go to register the new motivation route with the smoke handler.
This commit is contained in:
nepiedg
2026-01-25 09:53:18 +00:00
parent c9ebfd5873
commit 3154365ab2
5 changed files with 179 additions and 0 deletions
+1
View File
@@ -60,6 +60,7 @@ func main() {
&smokemodel.SmokeAIAdvice{},
&smokemodel.SmokeAIAdviceUnlock{},
&smokemodel.SmokeAINextSmoke{},
&smokemodel.SmokeMotivationQuote{},
); err != nil {
log.Fatalf("auto migrate failed: %v", err)
}