from pydantic import BaseModel, Field
from typing import Optional
from .user import UserResponse


class LoginRequest(BaseModel):
    username: str = Field(..., min_length=3)
    password: str = Field(..., min_length=6)


class LoginResponse(BaseModel):
    token: str
    token_type: str = "bearer"
    user: UserResponse
