oshipka/bootstrap/webapp/view_models/Example.yaml_
Daniel Tsvetkov b680ca8bbd files impl
2021-05-08 12:24:13 +02:00

30 lines
892 B
Plaintext

# RENAME THIS FILE TO .yaml and use the structure below
#
name: Example # name of the model
searchable: # list of columns that are searchable
- body
interits: # list of inheritable classes, each line is one of (Ownable)
- Ownable
access:
- verb: all
login_required: true
roles_required:
- admin
- verb: get|list|table|search|create|update|delete
login_required: false
show_in_nav: yes
columns:
- name: body|is_<bool>|<date>_dt
type: boolean|integer|text|long_text|datetime|filename|
default: "{}"
- name: related
type: relationship # type relationship
multiple: true # could be many-to-many
- name: choisy
type: choice
choices:
INT_INFO: int_info # key:value
display:
primary: type
secondary: text
tertiary: alt_names