ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: блокировка и удаление участников воркспейса в God Mode
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# Generated by Codex on 2026-04-29
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("db", "0135_workspace_feature_entitlements"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="workspacemember",
|
||||
name="is_banned",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="workspacemember",
|
||||
name="banned_at",
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="workspacemember",
|
||||
name="banned_until",
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="workspacemember",
|
||||
name="ban_project_member_ids",
|
||||
field=models.JSONField(default=list),
|
||||
),
|
||||
]
|
||||
@@ -210,6 +210,10 @@ class WorkspaceMember(BaseModel):
|
||||
default_props = models.JSONField(default=get_default_props)
|
||||
issue_props = models.JSONField(default=get_issue_props)
|
||||
is_active = models.BooleanField(default=True)
|
||||
is_banned = models.BooleanField(default=False)
|
||||
banned_at = models.DateTimeField(null=True, blank=True)
|
||||
banned_until = models.DateTimeField(null=True, blank=True)
|
||||
ban_project_member_ids = models.JSONField(default=list)
|
||||
getting_started_checklist = models.JSONField(default=dict)
|
||||
tips = models.JSONField(default=dict)
|
||||
explored_features = models.JSONField(default=dict)
|
||||
|
||||
Reference in New Issue
Block a user