Spaces:
Sleeping
Sleeping
| # Generated by Django 6.0.2 on 2026-02-16 20:01 | |
| import django.db.models.deletion | |
| from django.db import migrations, models | |
| class Migration(migrations.Migration): | |
| initial = True | |
| dependencies = [ | |
| ] | |
| operations = [ | |
| migrations.CreateModel( | |
| name='Participant', | |
| fields=[ | |
| ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |
| ('name', models.CharField(max_length=255)), | |
| ('email', models.EmailField(max_length=254, unique=True)), | |
| ('student_id', models.CharField(max_length=50)), | |
| ('role', models.CharField(default='developer', max_length=50)), | |
| ('quiz_data', models.JSONField(default=dict)), | |
| ('is_matched', models.BooleanField(default=False)), | |
| ('created_at', models.DateTimeField(auto_now_add=True)), | |
| ], | |
| ), | |
| migrations.CreateModel( | |
| name='Match', | |
| fields=[ | |
| ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |
| ('compatibility_score', models.FloatField()), | |
| ('created_at', models.DateTimeField(auto_now_add=True)), | |
| ('participant_1', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='match_1', to='api.participant')), | |
| ('participant_2', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='match_2', to='api.participant')), | |
| ], | |
| options={ | |
| 'unique_together': {('participant_1', 'participant_2')}, | |
| }, | |
| ), | |
| ] | |