Browse Source

[#13] Add solution model

Ian Adam Naval 4 years ago
parent
commit
2d061c6f46
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      goatctf/core/models.py

+ 7
- 0
goatctf/core/models.py View File

@@ -21,3 +21,10 @@ class Team(models.Model):
21 21
 class Player(User):
22 22
     """A player is a user with a team."""
23 23
     team = models.ForeignKey("Team")
24
+
25
+
26
+class Solution(models.Model):
27
+    """A solution is a player's """
28
+    challenge = models.ForeignKey("Challenge")
29
+    solved_at = models.DateTimeField(auto_now_add=True)
30
+    solver = models.ForeignKey("Player")

Loading…
Cancel
Save