Skip to content

Commit

Permalink
adding model
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Dec 23, 2024
1 parent 3e99259 commit c43efc1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/workspaces/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ def get_default_onboarding_state():
return 'CONNECTION'


class WorkspacesUser(models.Model):
id = models.BigAutoField(primary_key=True)
workspace = models.ForeignKey('Workspace', models.DO_NOTHING)
user = models.ForeignKey('users.User', models.DO_NOTHING)
class Meta:
db_table = 'workspaces_user'
unique_together = (('workspace', 'user'),)


class Workspace(models.Model):
"""
Workspace model
Expand Down

0 comments on commit c43efc1

Please sign in to comment.