diff --git a/sophon/core/models.py b/sophon/core/models.py index 5075a20..6fd4f84 100644 --- a/sophon/core/models.py +++ b/sophon/core/models.py @@ -1,5 +1,6 @@ from django.db import models from django.core import validators +from django.contrib.auth.models import User import pandas import pandasdmx import pandasdmx.message @@ -333,6 +334,19 @@ class Project(models.Model): default="INTERNAL", ) + owner = models.ForeignKey( + User, + help_text="The user who owns the project, and has full access to it.", + on_delete=models.CASCADE, + ) + + collaborators = models.ManyToManyField( + User, + help_text="The users who can edit the project.", + related_name="collaborates_in", + blank=True, + ) + flows = models.ManyToManyField( DataFlow, help_text="The DataFlows used in this project.",