Skip to content

Commit

Permalink
Missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravr committed Mar 6, 2024
1 parent 082d6d9 commit 1681cd2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions fastapi_tests/app/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import settings
from piccolo import columns as col
from piccolo.engine.postgres import PostgresEngine

from apphelpers.db.piccolo import BaseTable

db = PostgresEngine(
config=dict(
host=settings.DB_HOST,
database=settings.DB_NAME,
user=settings.DB_USER,
password=settings.DB_PASS,
)
)


class Book(BaseTable, db=db):
name = col.Text()

0 comments on commit 1681cd2

Please sign in to comment.