<?php
return array(
    'title' => 'Annotations',
    'single' => 'annotation',
    'model' => 'App\Models\Annotation',
    'columns' => array(
        'id',
        'word' => array(
            'title' => "Word",
            'relationship' => 'word', //this is the name of the Eloquent relationship method!
            'select' => "(:table).value",
        ),
        'word_id',
        'postag'=> array(
            'title' => "POS-tag",
            'relationship' => 'postag', //this is the name of the Eloquent relationship method!
            'select' => "(:table).name",
        ),
        'confidence_score'
    ),
    'edit_fields' => array(
        'user' => array (
            'type' => 'relationship',
            'title' => 'User',
            'name_field' => 'name',
            ),
        'word' => array (
            'type' => 'relationship',
            'title' => 'Mot',
            'name_field' => 'value',
        ),
        'postag' => array (
            'type' => 'relationship',
            'title' => 'POS-tag',
            'name_field' => 'name',
        )

    )
);