This pull request includes significant changes to the database schema, resource management, and test data files for the support_sphere_py project. The main updates involve modifying resource-related models, updating sample data scripts, and restructuring CSV data files.
This pull request includes significant changes to the database schema, resource management, and test data files for the
support_sphere_py
project. The main updates involve modifying resource-related models, updating sample data scripts, and restructuring CSV data files.Database Schema Updates:
src/support_sphere_py/src/support_sphere/models/public/resource.py
: Changed primary key fromid
toresource_cv_id
and madenotes
field nullable.src/support_sphere_py/src/support_sphere/models/public/resource_tag.py
: Updatedresource_id
to referenceresource_cv_id
instead ofid
.src/support_sphere_py/src/support_sphere/models/public/user_resource.py
: Updatedresource_id
to referenceresource_cv_id
instead ofid
.Sample Data Script Updates:
src/support_sphere_py/tests/resources/scripts/update_db_sample_data.py
:Resource
model to imports.populate_resource_types
to return resource type UUIDs.populate_resources
to handle both resource CV and resources based on CSV input.populate_resources
function.Test Data File Updates:
src/support_sphere_py/tests/resources/data/resources.csv
: Added comprehensive resource and skill data for testing.src/support_sphere_py/tests/resources/data/resources_cv.csv
: Removed old resource CV data file.Miscellaneous:
pixi.toml
: Removed dependency onsetup-supabase
for theport-forward-supabase-db
task.Related Issues
Resolves #170