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
5 stars 25 forks source link

Create Table: url_type #77

Open fyliu opened 1 year ago

fyliu commented 1 year ago

Overview

We need to create the url_type 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

Type of the URL (ReadMe, Wiki, etc.)

Data Fields

  1. Copied from spreadsheet and checked off according to ERD. (unchecked items indicate a mismatch between ERD and spreadsheet, which requires a review)

    • [x] (PK) id - int - Record Id
    • [x] name - varchar
    • [x] description - textfield
  2. In ERD only (having items here indicates a mismatch, which requires a review)

    • None

Associated Tables

  1. Copied from spreadsheet and checked off according to ERD. (unchecked items indicate a mismatch between ERD and spreadsheet, which requires a review)

    • [x] project_url (one-to-many)
  2. In ERD only (having items here indicates a mismatch, which requires a review)

    • None
fyliu commented 1 year ago

This table's data has overlaps with some URL fields in the project table. We need to document what should go in the project table and what should go in project_url. It looks to me like the project_url is meant as a way to extend what's the project table without needing to change the db schema.

joshuayhwu commented 1 year ago
class URL_Type(AbstractBaseModel):
    """
    user type
    """
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=255)
    description = models.CharField(max_length=255)

    def __str__(self): 
        return f"{self.name}" 
fyliu commented 1 year ago
ExperimentsInHonesty commented 11 months ago

@fang This issue needs to be cleaned up before it goes back into the prioritized backlog. It should not have comments in the body. it makes it too hard to follow

fyliu commented 11 months ago

Hidden all comments.

Turns out my last comment was saying that the previous comment has been resolved but I should have marked it hidden.