Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define postgreSQL schema and document in wiki #2

Open
3 tasks done
ortonomy opened this issue Aug 2, 2017 · 2 comments
Open
3 tasks done

define postgreSQL schema and document in wiki #2

ortonomy opened this issue Aug 2, 2017 · 2 comments
Assignees
Milestone

Comments

@ortonomy
Copy link
Owner

ortonomy commented Aug 2, 2017

Need to define the core data storage for the backend.

Acceptance:

  • define tables
  • define columns
  • documented in wiki article: DB schema
@ortonomy ortonomy added the setup label Aug 2, 2017
@ortonomy ortonomy added this to the Version 1.0 milestone Aug 2, 2017
@ortonomy ortonomy added the design label Aug 5, 2017
@ortonomy ortonomy self-assigned this Aug 5, 2017
@ortonomy
Copy link
Owner Author

ortonomy commented Aug 5, 2017

From Wiki:

Table: Users
[has many: Reviews, Comments, ??Projects]

id: uuid
name: text
email: text
password: text
admin: bool

Table: Freelancers
[has one: User, has many: Roles, Projects, Reviews, Comments]

id: uuid
firstname: text
lastname: text
fulltime: bool
email: text
phone: int
date_joined: timestamp
date_updated: timestamp
current_role: uuid
active: bool
hours: int
rate: int
availability: ???
timezone: char[3]
deadlines_hit: int
deadlines_missed: int

Table: Projects
[has many: Freelancers, Reviews, Comments, Users]

id: uuid
date_opened: timestamp
date_completed: timestamp
active: bool
description: text
on_time: bool (Handling/tracking of deadlines, esp. within an ongoing project, is complicated and needs more thought.)

Table: Reviews
[has one: Project, has many: Freelancers, Reviews, Comments]

id: uuid
date_submitted: timestamp
date_updated: timestamp
stars: int
review: text

Table: Comments

id: uuid
date_submitted: timestamp
date_updated: timestamp
author_id: uuid
title: text
body: text

Table: Roles

id: uuid
title: text
rate: int
date_started: timestamp
date_ended: timestamp

@ortonomy
Copy link
Owner Author

ortonomy commented Oct 4, 2017

This still depends on #12 , #11 , #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants