mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 08:11:08 -05:00
1.4 KiB
1.4 KiB
Parks Models
This document outlines the models in the parks app.
Park
- File:
parks/models/parks.py - Description: Represents a theme park.
Fields
name(CharField)slug(SlugField)description(TextField)status(CharField)location(GenericRelation tolocation.Location)opening_date(DateField)closing_date(DateField)operating_season(CharField)size_acres(DecimalField)website(URLField)average_rating(DecimalField)ride_count(IntegerField)coaster_count(IntegerField)operator(ForeignKey toparks.Company)property_owner(ForeignKey toparks.Company)photos(GenericRelation tomedia.Photo)
ParkArea
- File:
parks/models/areas.py - Description: Represents a themed area within a park.
Fields
park(ForeignKey toparks.Park)name(CharField)slug(SlugField)description(TextField)opening_date(DateField)closing_date(DateField)
Company
- File:
parks/models/companies.py - Description: Represents a company that can be an operator or property owner.
Fields
name(CharField)slug(SlugField)roles(ArrayField of CharField)description(TextField)website(URLField)founded_year(PositiveIntegerField)headquarters(CharField)parks_count(IntegerField)