UNPKG

@websolutespa/payload-plugin-bowl

Version:

Bowl PayloadCms plugin of the BOM Repository

40 lines (39 loc) 929 B
import { options } from '@websolutespa/payload-plugin-bowl'; const { slug, roles } = options; /** * EndUsers * ATTENTION! * to all required fields will be assigned a default value when created as role 'guest' */ export const EndUsers = { type: 'withEndUser', slug: slug.endUsers, admin: { defaultColumns: [ 'email', 'firstName', 'lastName' ] }, fields: [ { name: 'firstName', label: 'First Name', type: 'withText', required: true }, { name: 'lastName', label: 'Last Name', type: 'withText', required: true }, { type: 'withTenants', relationTo: [ 'type_a_collection', 'type_b_collection' ] } ] }; //# sourceMappingURL=EndUsers.js.map