support both `extend` and `extends` in model definition