Skip to content

Backend: Models

zL2noob edited this page Dec 5, 2024 · 5 revisions

This is a list of all models used in the Django database, along with their fields.

Ticket

Describes one potential ticket, or an attempt at creating a ticket. Fields:

  • id
  • external_id: Six letters (unique) used to identify this ticket in external settings, ie. what is shown to the customer
  • time_created
  • payment
  • ticket_type
  • times_used

Payment

Describes one potential payment, or an attempt at creating a payment. Fields:

  • expires_at
  • swish_id
  • status
  • email
  • sent_email
  • payment_started: Whether a real (Swish) payment may have been started; if so, this Payment should not be cleaned.

ChapterEvent

Describes one event at Fysiksektionen (such as one day of Fysikalen) where tickets can be bought. Fields:

  • title
  • description
  • total_seats
  • max_tickets_per_payment: How many tickets a user is allowed to buy per payment
  • sales_stop_at
  • ticket_types
  • reservation_duration
  • event_at

TicketType

Describes one type of ticket (such as Student Discount Tickets or Full Price Tickets). Fields:

  • price
  • title
  • description
Clone this wiki locally