hackforla / hackforla/peopledepot

Create Table: UserPracticeAreaSecondaryXref

Open
#680 0 comments 0 reactions 1 assignee Claimed by @egcuriel View on GitHub
complexity: small feature: table creation ready for prioritization role: back end s: CTJ s: PD team s: VRMS size: 1pt
Dominant language
Python
Stars
14
Forks
37
Avg merge
9d 15h
Merged PRs (30d)
5

Description

### Overview

We need to create the UserPracticeAreaSecondaryXref table to support many-to-many relationship between UserPracticeAreaSecondary.

Used to be part of
- #601

### Action Items

- [ ] Create xref table UserPracticeAreaSecondaryXref
field | type | related table | description
--- | --- | --- | ---
user | FK | User |
practice_area | FK | PracticeArea |

- [ ] update models.py User model field
```
practice_area_secondary = models.ManyToManyField(
"PracticeArea",
related_name="users_secondary",
blank=True,
through="UserPracticeAreaSecondaryXref",
)
```

### Resources/Instructions

- Reference similar code in models.py for guidance

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.