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

Model #1

Open
pavelk2 opened this issue Jun 13, 2014 · 0 comments
Open

Model #1

pavelk2 opened this issue Jun 13, 2014 · 0 comments

Comments

@pavelk2
Copy link
Contributor

pavelk2 commented Jun 13, 2014

account

user properties (i used extra class profile for it, if there is a way - better to get rid of this extra class and to have properties directly connected to a user):

  • short name
  • full_name
  • avatar_url
account
  • user (many to many) - i think that we might need to have one user with several accounts, one account with many users - mostly for requestors. By default each user has 1 account.
  • earnings
  • spendings
  • date_created
  • balance (property)
fundtransfer
  • from account
  • to account
  • currency (('VP','VIRTUAL POINTS'),('EU','EURO')) - as we draw on a piece of paper - there are 2 types of currency going around
  • amount
  • date_created
  • description

jobs

app
  • account (i think it is a cool idea to have apps connected to accounts, these accounts can group several users)
  • user (just the one created the app)
  • title
  • token
  • date_created
job
  • app
  • title
  • description
  • category (we might have many categories, currently - Espresso, Cappuccino, Wine, Volunteering)
  • status (deleted, not published, published - if there are no any dataunits available - jobs is not published automatically)
  • date_created
  • userinterface_url (url - which refers to a raw html file with a UI template)
  • userinterface_html (html code of the UI template taken from url mentioned above)
  • webhook_url (this url called everytime new answer is submitted)
  • gold_min
  • gold_max
  • score_min
  • dataunits_per_task
  • min_answers_per_dataunit
  • max_dataunits_per_worker
  • device_type (('MO','Mobile only'),('DO','Desktop Only'),('AD','Any device'))
  • qualitycontrol_url
dataunit
  • job
  • value (JSON - would be great to store it separately in Mongo DB or similar)
  • gold (true, false) - whether this dataunit is gold or not
  • status (completed, not completed, deleted)
  • date_created

answers

task
  • job
  • user (the worker completing this task)
  • status (not completed, completed)
  • date_created
answer (created automatically together with a task with empty value and score)
  • task
  • dataunit
  • value (JSON - would be great to store it separately in Mongo DB or similar)
  • score (integer value representing correctness 0 by default, negative or positive in case it is connected to gold data unit)
@pavelk2 pavelk2 changed the title API Model Jun 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant