snapshot: preserve dashboard redesign and live protocol workflow state
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workflows', '0024_workflowconfig_welcome_email_delay_days_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='onboardingrequest',
|
||||
name='intro_pdf_path',
|
||||
field=models.CharField(blank=True, max_length=500),
|
||||
),
|
||||
]
|
||||
27
backend/workflows/migrations/0026_introchecklistitem.py
Normal file
27
backend/workflows/migrations/0026_introchecklistitem.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workflows', '0025_onboardingrequest_intro_pdf_path'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='IntroChecklistItem',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('section', models.CharField(choices=[('workplace', 'Geräte und Arbeitsplatz'), ('accounts', 'Konten und Berechtigungen'), ('software', 'Software und Tools'), ('process', 'Prozesse und Hinweise')], max_length=30)),
|
||||
('label', models.CharField(max_length=255)),
|
||||
('sort_order', models.PositiveIntegerField(default=0)),
|
||||
('is_active', models.BooleanField(default=True)),
|
||||
('condition_field', models.CharField(blank=True, max_length=80)),
|
||||
('condition_operator', models.CharField(choices=[('always', 'Immer anzeigen'), ('contains', 'Enthält'), ('equals', 'Ist gleich'), ('is_true', 'Ist Ja / aktiv'), ('is_false', 'Ist Nein / inaktiv')], default='always', max_length=20)),
|
||||
('condition_value', models.CharField(blank=True, max_length=255)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['section', 'sort_order', 'label'],
|
||||
},
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workflows', '0026_introchecklistitem'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='OnboardingIntroductionSession',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('checklist_state', models.JSONField(blank=True, default=dict)),
|
||||
('notes', models.TextField(blank=True)),
|
||||
('status', models.CharField(choices=[('draft', 'Entwurf'), ('completed', 'Abgeschlossen')], default='draft', max_length=20)),
|
||||
('completed_at', models.DateTimeField(blank=True, null=True)),
|
||||
('completed_by_name', models.CharField(blank=True, max_length=255)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('onboarding_request', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='workflows.onboardingrequest')),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,16 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workflows', '0027_onboardingintroductionsession'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='onboardingintroductionsession',
|
||||
name='exported_pdf_path',
|
||||
field=models.CharField(blank=True, max_length=500),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user