add sqlmodel + alembic + setup models skeleton to slowly enable transition towards a db
This commit is contained in:
parent
8c646a5322
commit
0d3393ed94
11 changed files with 697 additions and 1 deletions
4
crawler/models/__init__.py
Normal file
4
crawler/models/__init__.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
from models.listing import Listing
|
||||
|
||||
|
||||
__all__ = ["Listing"]
|
||||
5
crawler/models/listing.py
Normal file
5
crawler/models/listing.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from sqlmodel import SQLModel, Field
|
||||
|
||||
|
||||
class Listing(SQLModel, table=True):
|
||||
id: int = Field(primary_key=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue