from typing import Optional

from sqlmodel import Field, SQLModel

__all__ = ['User']


class User(SQLModel, table=True):
    id: Optional[int] = Field(default=None, primary_key=True)
    username: str = Field(index=False, nullable=False)
    password: str = Field(index=False, nullable=False)

sqlmodel.Field
[((146, 183), 'sqlmodel.Field', 'Field', ([], {'default': 'None', 'primary_key': '(True)'}), '(default=None, primary_key=True)\n', (151, 183), False, 'from sqlmodel import Field, SQLModel\n'), ((204, 238), 'sqlmodel.Field', 'Field', ([], {'index': '(False)', 'nullable': '(False)'}), '(index=False, nullable=False)\n', (209, 238), False, 'from sqlmodel import Field, SQLModel\n'), ((259, 293), 'sqlmodel.Field', 'Field', ([], {'index': '(False)', 'nullable': '(False)'}), '(index=False, nullable=False)\n', (264, 293), False, 'from sqlmodel import Field, SQLModel\n')]