build up basic validations
do not allow nil metadata
provide some default values
add indexes to the searchable columns
mark some columns as not nullable
Merge pull request #3 from sportngin/basic-validation

build up basic validations