declare DataPoint model before using as relation