From c2b9f2de2434fb098fcd4a4cb9f9db6d1fb043ea Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 12 Dec 2024 21:34:01 +0100 Subject: [PATCH] Add chapter_event field to ticket. --- backend/bittan/bittan/models/ticket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/bittan/bittan/models/ticket.py b/backend/bittan/bittan/models/ticket.py index 2538594..00bd3a5 100644 --- a/backend/bittan/bittan/models/ticket.py +++ b/backend/bittan/bittan/models/ticket.py @@ -6,3 +6,4 @@ class Ticket(models.Model): payment = models.ForeignKey('Payment', on_delete=models.DO_NOTHING) ticket_type = models.ForeignKey('TicketType', on_delete=models.DO_NOTHING) times_used = models.IntegerField(default=0) + chapter_event = models.ForeignKey("ChapterEvent", on_delete=models.DO_NOTHING)