import { defaultProps, operators } from './properties'; import { IField } from './types'; export const createdBy: IField = { name: 'createdBy', type: 'object', group: 'systemInfo', order: 3, title: '{{t("Created by")}}', isAssociation: true, default: { type: 'belongsTo', target: 'users', foreignKey: 'createdById', // name, uiSchema: { type: 'object', title: '{{t("Created by")}}', 'x-component': 'RecordPicker', 'x-component-props': { fieldNames: { value: 'id', label: 'nickname', }, }, 'x-read-pretty': true, }, }, properties: { ...defaultProps, }, filterable: { children: [ { name: 'nickname', title: '{{t("Nickname")}}', operators: operators.string, schema: { title: '{{t("Nickname")}}', type: 'string', 'x-component': 'Input', }, }, ], }, };