File indexing completed on 2026-06-26 08:40:25
0001
0002
0003 import django.db.models.deletion
0004 from django.db import migrations, models
0005
0006
0007 class Migration(migrations.Migration):
0008
0009 dependencies = [
0010 ('pcs', '0019_restore_detector_version_composed_name'),
0011 ]
0012
0013 operations = [
0014 migrations.CreateModel(
0015 name='Questionnaire',
0016 fields=[
0017 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
0018 ('submitted_at', models.DateTimeField(help_text='Google Form response timestamp; the intake idempotency key', unique=True)),
0019 ('description', models.TextField(blank=True, default='', help_text='Dataset, generator, and purpose as submitted')),
0020 ('repository', models.TextField(blank=True, default='')),
0021 ('contact', models.TextField(blank=True, default='')),
0022 ('nevents', models.CharField(blank=True, default='', max_length=100)),
0023 ('benchmark', models.TextField(blank=True, default='')),
0024 ('estimate', models.TextField(blank=True, default='')),
0025 ('status', models.CharField(choices=[('active', 'Active'), ('review', 'Review'), ('linked', 'Linked'), ('closed', 'Closed')], default='active', max_length=20)),
0026 ('source_url', models.CharField(blank=True, default='', max_length=500)),
0027 ('source_row', models.CharField(blank=True, default='', max_length=100)),
0028 ('content_hash', models.CharField(db_index=True, max_length=64)),
0029 ('data', models.JSONField(blank=True, default=dict)),
0030 ('created_by', models.CharField(max_length=100)),
0031 ('created_at', models.DateTimeField(auto_now_add=True)),
0032 ('updated_at', models.DateTimeField(auto_now=True)),
0033 ],
0034 options={
0035 'db_table': 'pcs_questionnaire',
0036 'ordering': ['-submitted_at'],
0037 },
0038 ),
0039 migrations.AddField(
0040 model_name='prodrequest',
0041 name='questionnaire',
0042 field=models.ForeignKey(blank=True, help_text='Originating Google Form response mirror, if linked', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='prod_requests', to='pcs.questionnaire'),
0043 ),
0044 ]