Skip to content

Commit a464658

Browse files
authored
feat(app): 2 add admin field to Users (#28)
This will be used later when we've edited production users.
1 parent a624aff commit a464658

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

src/collections/Users.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
import { CollectionConfig } from 'payload/types'
1+
import { CollectionConfig } from "payload/types";
22

33
const Users: CollectionConfig = {
4-
slug: 'users',
4+
slug: "users",
55
auth: true,
66
admin: {
7-
useAsTitle: 'email',
7+
useAsTitle: "email",
88
},
99
fields: [
10-
// Email added by default
11-
// Add more fields as needed
10+
{
11+
name: "admin",
12+
type: "checkbox",
13+
},
1214
],
13-
}
15+
};
1416

15-
export default Users
17+
export default Users;

0 commit comments

Comments
 (0)