27 lines
1.2 KiB
Python
27 lines
1.2 KiB
Python
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')),
|
|
],
|
|
),
|
|
]
|