From 121741344352b1c2aae35a71cd5065c55dfe1c05 Mon Sep 17 00:00:00 2001 From: yena <50291995+nyj001012@users.noreply.github.com> Date: Mon, 15 Jan 2024 12:04:42 +0900 Subject: [PATCH] =?UTF-8?q?feat(pingpong):=20CustomGameRoom=20=EB=AA=A8?= =?UTF-8?q?=EB=8D=B8=20=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/pingpong/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/pingpong/models.py b/backend/pingpong/models.py index cd61ad24..2e57710b 100644 --- a/backend/pingpong/models.py +++ b/backend/pingpong/models.py @@ -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)