Closed smcalilly closed 11 months ago
@xmedr make sure the relationships between the tables in the schema match the model relationships for our current GIS models. we only need it for the models listed here: https://github.com/fpdcc/ccfp-asset-dashboard/blob/master/asset_dashboard/endpoints.py#L65
you should be able to follow the table names within those models and find the matching tables in this schema above. then, if the table has a relationship with another table, you should be able to link the model relationships.
@smcalilly Looks mostly good. I checked the fields and relationships for each, and saw some differences that may or may not be relevant:
actual_sqft
in the schema, but not in the code ⚠️poi_to_trails
in the code, but that says "no longer used" and isn’t on the schema ⚠️parking_info
and parking_connection
both are foreign keys to the same parking_entrance_info
table ⚠️poiInfo
and trailInfo
in models.py
, but says it is "no longer used" and that relationship is not shown in the schema ⚠️@xmedr perfect, thanks!
From PR #242:
Here's the latest schema diagram: