Initial commit - DesignerCEP Project with Caddy deployment
This commit is contained in:
19
Server/app/schemas/group.py
Normal file
19
Server/app/schemas/group.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from typing import Optional
|
||||
from pydantic import BaseModel
|
||||
|
||||
class PluginGroupBase(BaseModel):
|
||||
name: str
|
||||
current_version_file: Optional[str] = None
|
||||
comment: Optional[str] = None
|
||||
|
||||
class PluginGroupCreate(PluginGroupBase):
|
||||
pass
|
||||
|
||||
class PluginGroupUpdate(PluginGroupBase):
|
||||
name: Optional[str] = None
|
||||
|
||||
class PluginGroup(PluginGroupBase):
|
||||
id: int
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
Reference in New Issue
Block a user