Skip to content

Commit

Permalink
Migrate models
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanAsh committed Jul 12, 2024
1 parent 6588722 commit 519dfdd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.25 on 2024-07-11 10:16
# Generated by Django 3.2.25 on 2024-07-12 15:33

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -15,7 +15,7 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='Contributor',
fields=[
('id', models.IntegerField(primary_key=True, serialize=False)),
('id', models.IntegerField(help_text="The contributor's GitHub user-ID.", primary_key=True, serialize=False)),
('email', models.EmailField(max_length=254, verbose_name='email')),
('name', models.TextField(verbose_name='name')),
('location', models.TextField(verbose_name='location')),
Expand All @@ -31,8 +31,8 @@ class Migration(migrations.Migration):
name='Repository',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('gh_id', models.IntegerField(verbose_name='GitHub ID')),
('points', models.IntegerField(default=0, verbose_name='points')),
('gh_id', models.IntegerField(help_text='Github ID of the repo a contributor has contributed to.', verbose_name='GitHub ID')),
('points', models.IntegerField(default=0, help_text='Story points the contributor closed for this repository.', verbose_name='points')),
('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.contributor')),
],
options={
Expand All @@ -45,7 +45,7 @@ class Migration(migrations.Migration):
name='AgreementSignature',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('agreement_id', models.CharField(max_length=40, verbose_name='agreement id')),
('agreement_id', models.CharField(help_text='Commit ID of the contribution agreement in workspace.', max_length=40, verbose_name='agreement id')),
('signed_at', models.DateTimeField(verbose_name='signed at')),
('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.contributor')),
],
Expand Down

0 comments on commit 519dfdd

Please sign in to comment.