Moved things around
Some checks failed
Gitea Actions Demo / build-and-push (push) Failing after 6s

This commit is contained in:
2026-01-21 17:18:58 -05:00
parent a47df7171c
commit a0a059472b
160 changed files with 100 additions and 17 deletions

20
backend/models/base.py Normal file
View File

@@ -0,0 +1,20 @@
# python
from dataclasses import dataclass, field
import uuid
import time
@dataclass(kw_only=True)
class BaseModel:
id: str = field(default_factory=lambda: str(uuid.uuid4()))
created_at: float = field(default_factory=time.time)
updated_at: float = field(default_factory=time.time)
def touch(self):
self.updated_at = time.time()
def to_dict(self):
return {
'id': self.id,
'created_at': self.created_at,
'updated_at': self.updated_at
}