mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Complete OAuth2 documentation
This commit is contained in:
@@ -24,7 +24,7 @@ For the sake of this tutorial from now on, we'll use a simple SQLite databse.
|
||||
|
||||
Let's declare our User ORM model.
|
||||
|
||||
```py hl_lines="11-15"
|
||||
```py hl_lines="12-16"
|
||||
{!./src/db_ormar.py!}
|
||||
```
|
||||
|
||||
@@ -37,11 +37,11 @@ there to fit to your needs!
|
||||
The database adapter of **FastAPI Users** makes the link between your
|
||||
database configuration and the users logic. It should be generated by a FastAPI dependency.
|
||||
|
||||
```py hl_lines="22-23"
|
||||
```py hl_lines="23-24"
|
||||
{!./src/db_ormar.py!}
|
||||
```
|
||||
|
||||
Notice that we pass a reference to your [`UserDB` model](../models.md).
|
||||
Notice that we pass a reference to your [`UserDB` model](../model.md).
|
||||
|
||||
!!! warning
|
||||
In production, it's strongly recommended to setup a migration system to
|
||||
|
||||
Reference in New Issue
Block a user