summaryrefslogtreecommitdiff
path: root/src/payload/collections/Users.ts
blob: 730cde23318b785e9358e9a79458012861586b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import type { CollectionConfig } from 'payload';

export const Users: CollectionConfig = {
  slug: 'users',
  labels: {
    singular: 'users',
    plural: 'users',
  },
  admin: {
    useAsTitle: 'email',
  },
  auth: true,
  fields: [
    {
      name: 'name',
      label: 'name',
      type: 'text',
    },
  ],
};