AndrewNickComplex / fastfastjob.me

A Gig job web application built with django and bootstrap
https://fastfastjob.me
GNU General Public License v3.0
0 stars 0 forks source link

Finishing Database on models.py #4

Closed neXgithub closed 3 years ago

neXgithub commented 3 years ago

Time: 1 hour Task: Redesign detabase Deliverable: List of tables with primary and secondary keys Person: Nick

Completed:

neXgithub commented 3 years ago

Andrew said a. Checking that bosses won't be able to wishlist their own jobs. I was taught to do it in views.py later by just writing if job.boss is not user: add it to wishlist

andrewsiah commented 3 years ago

Andrew to update django models.py according to Nicholas' specification. On it righto

andrewsiah commented 3 years ago

@neXgithub Per your database design, questions:

Screenshot 2020-12-07 at 12 24 20 PM

On User, why:

  1. Date
  2. GeoLocation & Address both needed?

Why both Tags and Categorisation??

neXgithub commented 3 years ago

Date = when they subscribed/ signed up.

  1. Categorization is a linking table https://en.wikipedia.org/wiki/Associative_entity Its so that we do not have a many to many relationship. That really messed up the database

  2. next time we do a database design Ill add the data type.

  3. Things like address/ name should be broken down into subfields like first name, last name, street number, city, country, zip-code

andrewsiah commented 3 years ago

@neXgithub

On 2 (Categorization & Tagging),

Isn't it always a one-to-many relationship tho?

EG Job 1 - Title: Pull weed from my garden. Tag: Gardening

EG Job 2 - Title: Clean my garden Tag: Gardening

IE: Many jobs to one tag. No jobs have more than one tag.

Or you have a more specific categorization (kinda like labels) in mind? But that's too much complexity and harms our minimalistic end-goals no? Or am I missing something here?

neXgithub commented 3 years ago

did you push your changes for the model? Cause I do not see any changes on the model file and I've pulled

neXgithub commented 3 years ago

Ignore the shifts back and forth, mistyped.