Giter Club home page Giter Club logo

naughtylobby's People

Contributors

c0d3r23 avatar code-hound avatar jamirene88 avatar tsingell avatar

Watchers

 avatar  avatar

naughtylobby's Issues

Create Models

Politician
Validations:

  • A politician's name is a string. has to be present and has to be has to be different from null or empty
  • A politician's party is a string, has to be present and has to be has to be different from null or empty
  • A politician's salary is an integer, has to be present, has to be different from null and of a value greater than 0
  • A politician's tag_line is a string, has to be present
  • A politician's description is a text
  • A politician's location is a string, has to be present, has to be different from null or empty
  • A politician's photo_url is a string, has to be present, has to be different from null or empty

a politician has many votes
a politician has many meetings
a politician has many reviews
a politician has many users through votes and meetings
a politician has an average rate resulting from the average review rating

Review

  • A review's user_id is an integer, has to be present, has to be different than null
  • A review's politician_id is an integer, has to be present, has to be different than null
  • A review's rating is an integer, has to be present, has to be a value greater or equal to 0 and smaller or equal to 10
  • A review's title is a string, has to be present, has to be different from null or empty
  • A review's description is a text, has to be present, has to be different from null or empty
  • A review's used_services is a boolean, has to be present, default value = false

a review belongs_to a politician
a review belongs_to a user

Vote

  • A vote's user_id is an integer, has to be present, has to be different than null
  • A vote's politician_id is an integer, has to be present, has to be different than null
  • A vote's subject is a string, has to be present, has to be different from null or empty
  • A vote's used_services is a boolean, has to be present, default value = false

a vote belongs_to a politician
a vote belongs_to a user

Meeting

  • A vote's user_id is an integer, has to be present, has to be different than null or empty
  • A vote's politician_id is an integer, has to be present, has to be different than null
  • A vote's start_date is a date, has to be present, has to be different from null or empty
  • A vote's end_date is a date, has to be present, has to be different from null or empty

a vote belongs_to a politician
a vote belongs_to a user

User

  • A user's name is a string, has to be present, has to be different than null
  • A vote's photo_url is an integer, has to be present, has to be different than null or empty

a user has may votes
a user has many reviews
a user has many politicians through votes and reviews

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.