from sqlmodel import Field
from typing import Optional
from app.models.base_uuid_model import BaseUUIDModel
from uuid import UUID

class LinkGroupUser(BaseUUIDModel, table=True):
    group_id: Optional[UUID] = Field(default=None, nullable=False, foreign_key="group.id", primary_key=True)
    user_id: Optional[UUID] = Field(default=None, nullable=False, foreign_key="user.id", primary_key=True)

sqlmodel.Field
[((210, 287), 'sqlmodel.Field', 'Field', ([], {'default': 'None', 'nullable': '(False)', 'foreign_key': '"""group.id"""', 'primary_key': '(True)'}), "(default=None, nullable=False, foreign_key='group.id', primary_key=True)\n", (215, 287), False, 'from sqlmodel import Field\n'), ((318, 394), 'sqlmodel.Field', 'Field', ([], {'default': 'None', 'nullable': '(False)', 'foreign_key': '"""user.id"""', 'primary_key': '(True)'}), "(default=None, nullable=False, foreign_key='user.id', primary_key=True)\n", (323, 394), False, 'from sqlmodel import Field\n')]