Files
weirsoe-party-protocol/fupogfakta/migrations/0008_questionlie.py
Asger Geel Weirsøe a81bc1250c
Some checks failed
CI / test-and-quality (push) Failing after 4m4s
Big visual overhaul docker compsoe file etc
2026-03-23 14:11:30 +01:00

30 lines
1.1 KiB
Python

# Generated by Django 6.0.2 on 2026-03-18 13:00
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fupogfakta', '0007_roundconfig_started_from_scoreboard'),
]
operations = [
migrations.CreateModel(
name='QuestionLie',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.CharField(max_length=255)),
('is_active', models.BooleanField(default=True)),
('sort_order', models.PositiveIntegerField(default=0)),
('created_at', models.DateTimeField(auto_now_add=True)),
('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fallback_lies', to='fupogfakta.question')),
],
options={
'ordering': ['sort_order', 'id'],
'unique_together': {('question', 'text')},
},
),
]