17 lines
331 B
Python
17 lines
331 B
Python
from typing import Optional
|
|
from pydantic import BaseModel
|
|
from datetime import datetime
|
|
|
|
|
|
class NoitaSubmissionOut(BaseModel):
|
|
id: str
|
|
user_id: Optional[int]
|
|
username: Optional[str]
|
|
file_size: int
|
|
content_type: str
|
|
created_at: datetime
|
|
processed: bool
|
|
|
|
class Config:
|
|
from_attributes = True
|