func NewSchema(fileSysyem fsys.FileSystem) SchemaProvider {
	return &schemaProvider{
		fileSystem: fileSysyem,
	}
}
NewSchema creates a schema for updating a cluster node
package cluster
import (
	"github.com/spoke-d/thermionic/internal/db/database"
	"github.com/spoke-d/thermionic/internal/db/schema"
	"github.com/spoke-d/thermionic/internal/fsys"
)
type schemaProvider struct {
	fileSystem fsys.FileSystem
}
func (s schemaProvider) Schema() Schema {
	schema := schema.New(s.fileSystem, s.Updates())
	schema.Fresh(freshSchema)
	return schema
}
func (s schemaProvider) Updates() []schema.Update {
	return []schema.Update{
		updateFromV0,
		updateFromV1,
	}
}