49 lines
2.2 KiB
Python
49 lines
2.2 KiB
Python
# Generated by Django 6.0.2 on 2026-03-18 13:16
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('fupogfakta', '0008_questionlie'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='PhaseVoiceLine',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('game_key', models.CharField(default='fupogfakta', max_length=64)),
|
|
('cue_key', models.CharField(choices=[('intro', 'Intro'), ('lobby', 'Lobby'), ('lie', 'Lie'), ('guess', 'Guess'), ('reveal', 'Reveal'), ('scoreboard', 'Scoreboard'), ('finished', 'Finished')], max_length=32)),
|
|
('locale', models.CharField(default='en', max_length=12)),
|
|
('text', models.TextField()),
|
|
('is_active', models.BooleanField(default=True)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
],
|
|
options={
|
|
'ordering': ['game_key', 'cue_key', 'locale'],
|
|
'unique_together': {('game_key', 'cue_key', 'locale')},
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='QuestionVoiceLine',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('cue_key', models.CharField(choices=[('question_prompt', 'Question prompt'), ('question_reveal', 'Question reveal')], max_length=32)),
|
|
('locale', models.CharField(default='en', max_length=12)),
|
|
('text', models.TextField()),
|
|
('is_active', models.BooleanField(default=True)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='voice_lines', to='fupogfakta.question')),
|
|
],
|
|
options={
|
|
'ordering': ['question_id', 'cue_key', 'locale'],
|
|
'unique_together': {('question', 'cue_key', 'locale')},
|
|
},
|
|
),
|
|
]
|