helpers

Helpers:


AUTH_ROLE_REGEX

Spec

name: AUTH_ROLE_REGEX
path: helper-types
regex: ^(user|admin)$
type: string

RELATION_TYPE_REGEX

Spec

name: RELATION_TYPE_REGEX
path: helper-types
regex: ^(one-to-one|one-to-many|many-to-many|belongs-to-one|belongs-to-many)$
type: string

OWNED_SNIPPET

Spec

fields:
- name: type
  regex: ^(has-one|has-many)$
  type: string
- name: name
  optional: true
  type: NAME_REGEX
- name: no-mutate
  optional: true
  type: boolean
- name: current-user-with
  optional: true
  type: boolean
name: OWNED_SNIPPET
path: helper-types
type: object