initial prototype for autokanban
This commit is contained in:
commit
e03b3014fe
5647 changed files with 345269 additions and 0 deletions
14
app/models.py
Normal file
14
app/models.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from pydantic import BaseModel
|
||||
from typing import List
|
||||
import uuid
|
||||
|
||||
class Task(BaseModel):
|
||||
id: str
|
||||
content: str
|
||||
user: str
|
||||
priority: int # 1 (low) to 5 (high)
|
||||
status: str # pending, approved, printed
|
||||
|
||||
@staticmethod
|
||||
def create(content: str, user: str, priority: int):
|
||||
return Task(id=str(uuid.uuid4()), content=content, user=user, priority=priority, status="pending")
|
||||
Loading…
Add table
Add a link
Reference in a new issue