|
| 1 | +# Generated by Django 4.2.16 on 2026-01-25 17:30 |
| 2 | + |
| 3 | +from django.db import migrations, models |
| 4 | +import django.db.models.deletion |
| 5 | +import uuid |
| 6 | + |
| 7 | + |
| 8 | +class Migration(migrations.Migration): |
| 9 | + |
| 10 | + dependencies = [('core', '0047_win')] |
| 11 | + |
| 12 | + operations = [ |
| 13 | + migrations.CreateModel( |
| 14 | + name='Accomplishment', |
| 15 | + fields=[ |
| 16 | + ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), |
| 17 | + ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Created at')), |
| 18 | + ('updated_at', models.DateTimeField(auto_now=True, verbose_name='Updated at')), |
| 19 | + ('title', models.CharField(db_comment='Title of the accomplishment', help_text='Title of the accomplishment', max_length=255)), |
| 20 | + ('description', models.TextField(db_comment='Detailed description of the accomplishment', help_text='Detailed description of the accomplishment')), |
| 21 | + ('url', models.URLField(db_comment='URL link to the accomplishment', help_text='URL link to the accomplishment')), |
| 22 | + ('accomplished_on', models.DateTimeField(db_comment='Date when the accomplishment was achieved', help_text='Date when the accomplishment was achieved')), |
| 23 | + ('project', models.ForeignKey(db_comment='Project this accomplishment belongs to', help_text='Project this accomplishment belongs to', on_delete=django.db.models.deletion.PROTECT, related_name='accomplishments', to='core.project')), |
| 24 | + ], |
| 25 | + ), |
| 26 | + migrations.AddConstraint( |
| 27 | + model_name='accomplishment', |
| 28 | + constraint=models.UniqueConstraint(fields=('project', 'title'), name='unique_accomplishment_per_project'), |
| 29 | + ), |
| 30 | + ] |
0 commit comments