auto add **init** attribute

automatically adding **init** attribute based on **model** attribute