2023-09-18 01:08:09 +00:00
|
|
|
# Python imports
|
2023-09-23 05:12:36 +00:00
|
|
|
from typing import Optional
|
2023-09-18 01:08:09 +00:00
|
|
|
|
|
|
|
# Lib imports
|
2023-11-19 21:37:11 +00:00
|
|
|
from sqlmodel import SQLModel, Field
|
2023-09-18 01:08:09 +00:00
|
|
|
|
2023-09-23 05:12:36 +00:00
|
|
|
# Application imports
|
2023-09-18 01:08:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-09-23 05:12:36 +00:00
|
|
|
class User(SQLModel, table = True):
|
|
|
|
id: Optional[int] = Field(default = None, primary_key = True)
|
|
|
|
name: str
|
|
|
|
password: str
|
|
|
|
email: Optional[str] = None
|