newModelForm = (table, req) => {
  return new Form({
    action: "/models/new/" + table.id,
    fields: [
      { name: "name", label: "Name", type: "String", required: true },
      {
        name: "modelpattern",
        label: "Model pattern",
        type: "String",
        required: true,
        attributes: { options: Object.keys(getState().modelpatterns) },
      },
    ],
  });
}
@category server
@module routes/models
@subcategory routes