from pydantic import BaseModel
from typing import List
from datetime import datetime

class SystemConfig(BaseModel):
    max_image_size: int  # en octets
    max_images_per_pin: int
    max_images_per_user: int
    allowed_image_types: List[str]  # types MIME
    max_pins_per_user: int
    max_friends_per_user: int

class DBConfig(BaseModel):
    config: SystemConfig
    updated_at: datetime
    updated_by: str  # ID de l'utilisateur qui a fait la dernière modification 