dserban/censormenot — Issue #1: TODO: Add three new Rails models
Author: dserban
Created: 2012-02-15 18:02:54+00:00
State: open

First of all, remove the model HostAndPort, it is no longer needed.
We are going to keep the Lookup model, and add three new ones:

* Vote
* RequestedDomain
* StagedRecord

Vote is a model that stores whether the user wants to override with either 0 or 1 the trust value for a particular domain-IP pairing after querying the Lookup model to answer queries.
It has the same structure as the Lookup model.

RequestedDomain is a list of domain names that the user is interested in finding the IP addresses for.
It has only one attribute: domain.

StagedRecord is a model that stores answers to the user's queries.
It has the following attributes: domain, answered_by, ip, trust.
("answered_by" is the IP address where the answer came from.)