from sqlmodel import SQLModel, Relationship
from typing import List
from app.models.base_uuid_model import BaseUUIDModel

class RoleBase(SQLModel):
    name: str
    description: str

class Role(BaseUUIDModel, RoleBase, table=True):    
    users: List["User"] = Relationship(back_populates="role", sa_relationship_kwargs={"lazy": "selectin"})



sqlmodel.Relationship
[((263, 348), 'sqlmodel.Relationship', 'Relationship', ([], {'back_populates': '"""role"""', 'sa_relationship_kwargs': "{'lazy': 'selectin'}"}), "(back_populates='role', sa_relationship_kwargs={'lazy': 'selectin'}\n    )\n", (275, 348), False, 'from sqlmodel import SQLModel, Relationship\n')]