moved db stuff to own folder

This commit is contained in:
2024-02-21 22:15:25 -06:00
parent d81bf3815a
commit 2389f1d414
3 changed files with 6 additions and 0 deletions

15
src/libs/db/models.py Normal file
View File

@@ -0,0 +1,15 @@
# Python imports
from typing import Optional
# Lib imports
from sqlmodel import SQLModel, Field
# Application imports
class User(SQLModel, table = True):
id: Optional[int] = Field(default = None, primary_key = True)
name: str
password: str
email: Optional[str] = None