mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 09:51:09 -05:00
major changes, including tailwind v4
This commit is contained in:
26
memory-bank/documentation/rides_models.md
Normal file
26
memory-bank/documentation/rides_models.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Rides Domain Model Documentation & Analysis
|
||||
|
||||
This document outlines the models related to the rides domain and analyzes the current structure for consolidation.
|
||||
|
||||
## 1. Model Definitions
|
||||
|
||||
### `rides` app (`rides/models.py`)
|
||||
- **`Designer`**: A basic model representing a ride designer.
|
||||
- **`Manufacturer`**: A basic model representing a ride manufacturer.
|
||||
- **`Ride`**: The core model for a ride, with relationships to `Park`, `Manufacturer`, `Designer`, and `RideModel`.
|
||||
- **`RideModel`**: Represents a specific model of a ride (e.g., B&M Dive Coaster).
|
||||
- **`RollerCoasterStats`**: A related model for roller-coaster-specific data.
|
||||
|
||||
### `manufacturers` app (`manufacturers/models.py`)
|
||||
- **`Manufacturer`**: A more detailed and feature-rich model for manufacturers, containing fields like `website`, `founded_year`, and `headquarters`.
|
||||
|
||||
### `designers` app (`designers/models.py`)
|
||||
- **`Designer`**: A more detailed and feature-rich model for designers, with fields like `website` and `founded_date`.
|
||||
|
||||
## 2. Analysis for Consolidation
|
||||
|
||||
The current structure is fragmented. There are three separate apps (`rides`, `manufacturers`, `designers`) managing closely related entities. The `Manufacturer` and `Designer` models are duplicated, with a basic version in the `rides` app and a more complete version in their own dedicated apps.
|
||||
|
||||
**The goal is to consolidate all ride-related models into a single `rides` app.** This will simplify the domain, reduce redundancy, and make the codebase easier to maintain.
|
||||
|
||||
**Conclusion:** The `manufacturers` and `designers` apps are redundant and should be deprecated. Their functionality and data must be merged into the `rides` app.
|
||||
Reference in New Issue
Block a user