getId is defined in BaseModel so we don't need to define it in models which extend it.