{
  alias:            "___fcf___groups",
  table:            "___fcf___groups",
  enable:           true,
  title:            "Groups",
  singleTitle:      "${record.name}$",
  description:      "List of user groups",
  dbSync:           true,
  inner:            true,
  connectionGroup:  "default",
  access: {
    select:         ["*"],
    update:         ["root"],
    insert:         ["root"],
    delete:         ["root"],
  },
  key:              "id",
  order:            [ { type: "field", field: "id", order: "asc" } ],
  fields:[
    {
      alias:          "id",
      field:          "id",
      type:           "bigint",
      notAdd:         true,
      notEdit:        true,
      autoIncrement:  true,
    },
    {
      alias:          "name",
      field:          "name",
      title:          "!{{Group name}}!",
      type:           "string",
      notEmpty:       true,
      unique:         true,
    },
    {
      alias:          "description",
      field:          "description",
      title:          "!{{Description}}!",
      type:           "text",
      usage: {
        "edit":   { template: "@controls:text-edit" },
        "edit.*": { template: "@controls:text-edit" },
        "add":    { template: "@controls:text-edit" },
        "add.*":  { template: "@controls:text-edit" },
      }
    },
    {
      alias:          'roles',
      title:          '!{{Roles}}!',
      type:           'externalRef',
      projection:     '___fcf___groups_roles',
      selfField:      'self_ref',
      refField:       'entity_ref',
    },
  ]
}
