You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
475 B
16 lines
475 B
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 |