mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 10:05:38 +01:00
Base pydantic models for user managment
This commit is contained in:
parent
05eb7e0e5c
commit
552ab862bb
1 changed files with 14 additions and 0 deletions
14
users.py
Normal file
14
users.py
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
from typing import List
|
||||||
|
|
||||||
|
class UserBase(BaseModel):
|
||||||
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
|
id: int
|
||||||
|
name: str
|
||||||
|
email: str
|
||||||
|
|
||||||
|
class UserList(BaseModel):
|
||||||
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
|
users: List[UserBase]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue