feat(cms-core): add Users, Articles, Media collections and SiteSettings global

This commit is contained in:
2026-04-06 14:40:07 +02:00
parent 6adcafbc05
commit f56fc2f9c6
6 changed files with 163 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import type { CollectionConfig } from "payload";
export const Users: CollectionConfig = {
slug: "users",
auth: true,
admin: {
useAsTitle: "email",
},
fields: [
{
name: "displayName",
type: "text",
},
{
name: "role",
type: "select",
options: [
{ label: "Admin", value: "admin" },
{ label: "Editor", value: "editor" },
{ label: "Author", value: "author" },
],
defaultValue: "author",
required: true,
},
],
};