diff --git a/Pipfile.lock b/Pipfile.lock new file mode 100644 index 0000000..d2c2cba --- /dev/null +++ b/Pipfile.lock @@ -0,0 +1,18 @@ +{ + "_meta": { + "hash": { + "sha256": "ebffa69a1fa192d1cef7cb42ad79231ca976565c5ce371a70160b3048d3cbc06" + }, + "pipfile-spec": 6, + "requires": {}, + "sources": [ + { + "name": "pypi", + "url": "https://pypi.org/simple", + "verify_ssl": true + } + ] + }, + "default": {}, + "develop": {} +} diff --git a/web_server/web_server/models/Mod.py b/web_server/web_server/models/Mod.py new file mode 100644 index 0000000..979517b --- /dev/null +++ b/web_server/web_server/models/Mod.py @@ -0,0 +1,9 @@ +from django.db import models + +class Mod(models.Model): + github_username = models.CharField(max_length=30) + id = models.IntegerField(primary_key=True) + github_id = models.CharField(max_length=30) + is_auth = models.BooleanField(default=False) + is_maintainer = models.BooleanField(default=False) + created_at = models.DateField() diff --git a/web_server/web_server/models/__init__.py b/web_server/web_server/models/__init__.py index 50c9444..1a175a4 100644 --- a/web_server/web_server/models/__init__.py +++ b/web_server/web_server/models/__init__.py @@ -1,2 +1,3 @@ from .Doggo import Doggo from .Owner import Owner +from .Mod import Mod