from typing import Optional

from sqlmodel import Field, SQLModel


class Example(SQLModel, table=True):
    """测试一下"""

    id: Optional[int] = Field(default=None, primary_key=True)
    message: str

sqlmodel.Field
[((145, 182), 'sqlmodel.Field', 'Field', ([], {'default': 'None', 'primary_key': '(True)'}), '(default=None, primary_key=True)\n', (150, 182), False, 'from sqlmodel import Field, SQLModel\n')]