
from typing import Optional
from pydantic.types import UUID4, PositiveInt
from sqlmodel.main import Field, SQLModel
from datetime import datetime

class Pagination(SQLModel):
    page: Optional[PositiveInt] = 1
    max_pagination: int = 10


class CreatedAtModel(SQLModel):
    public_key: UUID4
    created_at: datetime = Field(
        None, alias="created_at")


class UpdateAtModel(SQLModel):
    updated_at: Optional[datetime] = Field(
        None, alias="updated_at")


class IDModel(SQLModel):
    id_: int = Field(
        default=None, 
        primary_key=True, 
        alias="id")

sqlmodel.main.Field
[((324, 355), 'sqlmodel.main.Field', 'Field', (['None'], {'alias': '"""created_at"""'}), "(None, alias='created_at')\n", (329, 355), False, 'from sqlmodel.main import Field, SQLModel\n'), ((435, 466), 'sqlmodel.main.Field', 'Field', (['None'], {'alias': '"""updated_at"""'}), "(None, alias='updated_at')\n", (440, 466), False, 'from sqlmodel.main import Field, SQLModel\n'), ((518, 567), 'sqlmodel.main.Field', 'Field', ([], {'default': 'None', 'primary_key': '(True)', 'alias': '"""id"""'}), "(default=None, primary_key=True, alias='id')\n", (523, 567), False, 'from sqlmodel.main import Field, SQLModel\n')]