Im making an index in solr from db in the following way:
You can add a column to your SQL query that contains static data like this:
If you try to add a field with only name and template attributes, Solr will throw an error saying Field must have a column attribute.
name
template