Skip to content

Instantly share code, notes, and snippets.

@rnelsonchem
Created December 3, 2023 17:54
Show Gist options
  • Save rnelsonchem/438e7c4e5f58a63f40da3ac75a5e1da7 to your computer and use it in GitHub Desktop.
Save rnelsonchem/438e7c4e5f58a63f40da3ac75a5e1da7 to your computer and use it in GitHub Desktop.
The table description
from sqlalchemy.orm import Mapped, mapped_column
from . import db
class TestTable(db.Model):
__tablename__ = 'test_table'
key: Mapped[int] = mapped_column(primary_key=True)
name: Mapped[str] = mapped_column()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment