feat(workspaces): add thumbnail upload and lifecycle support

This commit is contained in:
2026-04-28 11:38:35 +03:30
parent 76f02dc259
commit 315f2ca728
4 changed files with 91 additions and 17 deletions

View File

@@ -9,6 +9,7 @@ User = get_user_model()
class Workspace(BaseModel):
name = models.CharField(max_length=255)
description = models.TextField(blank=True)
thumbnail = models.ImageField(upload_to="profile/workspaces/", blank=True, null=True)
owner = models.ForeignKey(
User,
on_delete=models.PROTECT,