SQLModel サブクラスで __tablename__ を設定して、カスタムテーブル名を定義します。
sqlmodel_custom_tablename.py
class Product(SQLModel, table=True):
id: Optional[int] = Field(default=None, primary_key=True)
mpn: Optional[str] = Field(description="Manufacturer part number", index=True)
__tablename__ = "MyApplicationProduct"この記事が役に立った場合は、TechOverflow での新しい記事の調査と公開を支援するため、「Buy Me a Coffee」でのご支援、または PayPal 経由でのご寄付をご検討ください