table model + some relations