type attribute banned for base model