Skip to content

Commit

Permalink
feat(pingpong): CustomGameRoom 모델 정의
Browse files Browse the repository at this point in the history
  • Loading branch information
nyj001012 committed Jan 15, 2024
1 parent 44c2f20 commit 1217413
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/pingpong/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ class TournamentGame(models.Model):
game_time = models.DurationField(null=False, blank=False)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)


class CustomGameRoom(models.Model):
manager_id = models.ForeignKey('users.User', on_delete=models.PROTECT, related_name='manager')
topic = models.CharField(max_length=100, null=False, blank=False)
password = models.CharField(max_length=100, null=True, blank=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)

0 comments on commit 1217413

Please sign in to comment.