created relation and validation scaffold