Skip to content

Commit

Permalink
Start api models for contribution agreement (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanAsh committed Jul 5, 2024
1 parent dafd55b commit b267d6f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
20 changes: 20 additions & 0 deletions api/models/contributor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"""
© Ocado Group
Created on 05/07/2024 at 16:18:48(+01:00).
"""

from django.db import models

class Contributor(models.Model):
""" A contributor """
id = models.IntegerField(primary_key=True)
email = models.TextField()
name = models.TextField()
location = models.TextField()
html_url = models.TextField()
avatar_url = models.TextField()

def __str__(self):
return super().name

6 changes: 6 additions & 0 deletions api/models/repository.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""
© Ocado Group
Created on 05/07/2024 at 16:39:14(+01:00).
"""
from django.db import models

0 comments on commit b267d6f

Please sign in to comment.