From b267d6fe91246b518cfbb67fb831b031e631a46f Mon Sep 17 00:00:00 2001 From: Salman Ashraf Date: Fri, 5 Jul 2024 15:50:02 +0000 Subject: [PATCH] Start api models for contribution agreement (#82) --- api/models/contributor.py | 20 ++++++++++++++++++++ api/models/repository.py | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 api/models/contributor.py create mode 100644 api/models/repository.py diff --git a/api/models/contributor.py b/api/models/contributor.py new file mode 100644 index 0000000..3d46f57 --- /dev/null +++ b/api/models/contributor.py @@ -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 + \ No newline at end of file diff --git a/api/models/repository.py b/api/models/repository.py new file mode 100644 index 0000000..db25d00 --- /dev/null +++ b/api/models/repository.py @@ -0,0 +1,6 @@ +""" +© Ocado Group +Created on 05/07/2024 at 16:39:14(+01:00). + +""" +from django.db import models