forked from hackforla/CivicTechJobs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hackforla#619 from LoTerence/fix/react-router
Fix/react router
- Loading branch information
Showing
14 changed files
with
495 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
backend/ctj_api/migrations/0002_communityofpractice_project_role_skill.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
# Generated by Django 5.1.2 on 2024-12-06 00:13 | ||
|
||
import django.db.models.deletion | ||
import uuid | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("ctj_api", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="CommunityOfPractice", | ||
fields=[ | ||
( | ||
"id", | ||
models.UUIDField( | ||
default=uuid.uuid4, | ||
editable=False, | ||
primary_key=True, | ||
serialize=False, | ||
), | ||
), | ||
( | ||
"practice_area", | ||
models.CharField( | ||
choices=[ | ||
("data_science", "Data Science"), | ||
("engineering", "Engineering"), | ||
("ops", "Ops"), | ||
("project_management", "Project/Product Management"), | ||
("ui_ux", "UI/UX"), | ||
], | ||
max_length=50, | ||
), | ||
), | ||
("description", models.TextField()), | ||
("created_at", models.DateTimeField(auto_now_add=True)), | ||
("updated_at", models.DateTimeField(auto_now=True)), | ||
], | ||
options={ | ||
"verbose_name": "Community of Practice", | ||
"verbose_name_plural": "Communities of Practice", | ||
"db_table": "community_of_practice", | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name="Project", | ||
fields=[ | ||
( | ||
"id", | ||
models.UUIDField( | ||
default=uuid.uuid4, | ||
editable=False, | ||
primary_key=True, | ||
serialize=False, | ||
), | ||
), | ||
("people_depot_project_id", models.CharField(max_length=255)), | ||
("name", models.CharField(max_length=50)), | ||
("meeting_times", models.JSONField(blank=True, null=True)), | ||
("created_at", models.DateTimeField(auto_now_add=True)), | ||
("updated_at", models.DateTimeField(auto_now=True)), | ||
], | ||
options={ | ||
"db_table": "projects", | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name="Role", | ||
fields=[ | ||
( | ||
"id", | ||
models.UUIDField( | ||
default=uuid.uuid4, | ||
editable=False, | ||
primary_key=True, | ||
serialize=False, | ||
), | ||
), | ||
("title", models.CharField(max_length=50)), | ||
("created_at", models.DateTimeField(auto_now_add=True)), | ||
("updated_at", models.DateTimeField(auto_now=True)), | ||
( | ||
"community_of_practice", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="roles", | ||
to="ctj_api.communityofpractice", | ||
), | ||
), | ||
], | ||
options={ | ||
"db_table": "roles", | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name="Skill", | ||
fields=[ | ||
( | ||
"id", | ||
models.UUIDField( | ||
default=uuid.uuid4, | ||
editable=False, | ||
primary_key=True, | ||
serialize=False, | ||
), | ||
), | ||
("name", models.CharField(max_length=50)), | ||
("created_at", models.DateTimeField(auto_now_add=True)), | ||
("updated_at", models.DateTimeField(auto_now=True)), | ||
( | ||
"roles", | ||
models.ManyToManyField(related_name="skills", to="ctj_api.role"), | ||
), | ||
], | ||
options={ | ||
"db_table": "skills", | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.