mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-02 18:49:09 +00:00
15 lines
No EOL
338 B
Python
15 lines
No EOL
338 B
Python
from pydantic import BaseModel, ConfigDict
|
|
from .base import IDModel, TimestampModel
|
|
|
|
class ChunkBase(BaseModel):
|
|
content: str
|
|
document_id: int
|
|
|
|
class ChunkCreate(ChunkBase):
|
|
pass
|
|
|
|
class ChunkUpdate(ChunkBase):
|
|
pass
|
|
|
|
class ChunkRead(ChunkBase, IDModel, TimestampModel):
|
|
model_config = ConfigDict(from_attributes=True) |