hackforla / peopledepot

A project to setup a datastore for people and projects at HackforLA. The link below takes you to the code documentation
https://hackforla.github.io/peopledepot/
GNU General Public License v2.0
7 stars 26 forks source link

Create Table: project_stack_element_xref #205

Open Neecolaa opened 1 year ago

Neecolaa commented 1 year ago

Dependency

Overview

We need to create the project_stack_element_xref table so that we can update a shared data store across hackforla.org, vrms, civictechjobs, and tables (onboarding) project.

Details

A table and a model are the same thing

Action Items

Resources/Instructions

Description

Joining project to stack_element (technologies, tools, and languages table)

Data Fields

  1. New fields
    • [ ] (PK) id - int - Record Id
    • [ ] (FK) project_id - int
    • [ ] (FK) stack_element_id - int - Record Id

Associated Tables

  1. New associations
    • [ ] stack_element (many-to-one)
    • [ ] project (many-to-one)

Testing ideas

Set the peopledepot project to have the python language in its stack

fyliu commented 8 months ago

We may be able to use the django builtin many to many field for this since this model doesn't have extra custom fields.

We would be able to do something like peopledepot.stack to get the set of associated stack_elements. And python.projects to get the all the projects using python.

More links to reference in deciding if this is a good idea to do: