Skip to content

Commit

Permalink
apply initial migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanAsh committed Jul 10, 2024
1 parent 8b23360 commit 9fe496d
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions api/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Generated by Django 3.2.25 on 2024-07-10 14:59

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='Contributor',
fields=[
('id', models.IntegerField(primary_key=True, serialize=False)),
('email', models.EmailField(max_length=254)),
('name', models.TextField()),
('location', models.TextField()),
('html_url', models.TextField()),
('avatar_url', models.TextField()),
],
options={
'verbose_name': 'contributor',
'verbose_name_plural': 'contributors',
},
),
migrations.CreateModel(
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)),
('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.contributor')),
],
options={
'verbose_name': 'repository',
'verbose_name_plural': 'repositories',
'unique_together': {('contributor', 'gh_id')},
},
),
migrations.CreateModel(
name='AgreementSignature',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('agreement_id', models.CharField(max_length=40)),
('signed_at', models.DateTimeField()),
('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.contributor')),
],
options={
'verbose_name': 'agreement_signature',
'verbose_name_plural': 'agreement_signatures',
'unique_together': {('contributor', 'agreement_id')},
},
),
]

0 comments on commit 9fe496d

Please sign in to comment.