from sqlmodel import SQLModel, Field
import datetime
from typing import Optional


class Orders(SQLModel, table=True):
    invoice_no: Optional[int] = Field(default=None, primary_key=True)
    stock_code: str
    description: str
    quantity: int
    invoice_date: datetime.datetime
    unit_price: float
    cust_id: int
    

sqlmodel.Field
[((151, 188), 'sqlmodel.Field', 'Field', ([], {'default': 'None', 'primary_key': '(True)'}), '(default=None, primary_key=True)\n', (156, 188), False, 'from sqlmodel import SQLModel, Field\n')]