Added full CRUD operations for filaments

This commit is contained in:
Donkie
2023-04-01 23:39:42 +02:00
parent 2fa91b0632
commit 43dd74c223
4 changed files with 83 additions and 43 deletions

View File

@@ -8,6 +8,10 @@ from pydantic import BaseModel, Field
from spoolson.database import models
class Message(BaseModel):
message: str = Field()
class Vendor(BaseModel):
id: int = Field(description="Unique internal ID of this vendor.")
name: str = Field(max_length=64, description="Vendor name.")