name: picklist_options
label: Picklist Options
icon: order_item
hidden: true
fields:
  picklist:
    type: master_detail
    label: Picklist
    reference_to: picklists
    required: true
  name:
    type: text
    label: Name
    required: true
  parent:
    type: lookup
    label: 上级选项
    reference_to: picklist_options
    filters: ["picklist", "=", "${picklist}"]
    required: false
  value:
    type: text
    label: Value
    inlineHelpText: Default Value = Name
  color:
    type: text
    label: Background Color
    inlineHelpText: Please enter a color code in the format '#bad6f2', with the prefix '#' omitted, and the selection will appear as the color background.
  sort_no:
    type: number
    label: Sort Number
    inlineHelpText:  High Value First.
  enable:
    type: boolean
    label: Enable
    defaultValue: true
  default:
    type: boolean
    label: Default
    defaultValue: false
    inlineHelpText: Use this value as the default for the picklist.
list_views:
  all:
    label: All Picklist Options
    filter_scope: space
    sort: [["sort_no", "desc"]]
    columns:
      - picklist
      - name
      - value
      - sort_no
      - enable
      - default
permission_set:
  user:
    allowCreate: false
    allowDelete: false
    allowEdit: false
    allowRead: true
    modifyAllRecords: false
    viewAllRecords: true
  admin:
    allowCreate: true
    allowDelete: true
    allowEdit: true
    allowRead: true
    modifyAllRecords: true
    viewAllRecords: true