crud and model of attachment