summaryrefslogtreecommitdiff
path: root/teams/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'teams/models.py')
-rw-r--r--teams/models.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/teams/models.py b/teams/models.py
new file mode 100644
index 0000000..c82a92c
--- /dev/null
+++ b/teams/models.py
@@ -0,0 +1,9 @@
+from django.db import models
+from django.contrib.auth.models import User
+
+from workshop_app.models import Profile
+
+class Team(models.Model):
+ members = models.ManyToManyField(Profile)
+ creator = models.OneToOneField(User)
+ created_date = models.DateTimeField(auto_now=True) \ No newline at end of file