mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 13:08:19 -04:00
base of sqlalchemy alembic
This commit is contained in:
16
python/orm/temp.py
Normal file
16
python/orm/temp.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""Temporary ORM model."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from sqlalchemy import String
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from python.orm.base import TableBase
|
||||
|
||||
|
||||
class Temp(TableBase):
|
||||
"""Temporary table for initial testing."""
|
||||
|
||||
__tablename__ = "temp"
|
||||
|
||||
name: Mapped[str] = mapped_column(String(255), nullable=False)
|
||||
Reference in New Issue
Block a user