teqo-backup/src/collections/Consent.ts
Francisco Ignácio Fontoura Solla bcac665cb5 Ship /campanha nuclei MVP with RBAC, invites, and vote estimates.
Adds electoral nuclei, leaderships, updates, and WhatsApp invite flows behind campaign auth, plus the consolidated schema migration that Vercel applies on deploy.
2026-07-18 15:01:56 -03:00

32 lines
613 B
TypeScript

import { CollectionConfig } from 'payload'
export const Consent: CollectionConfig = {
slug: 'consent',
labels: {
singular: 'Consentimento',
plural: 'Consentimentos',
},
admin: {
group: 'Contatos',
useAsTitle: 'text',
},
fields: [
{
name: 'key',
type: 'text',
label: 'Chave estável',
required: false,
unique: true,
index: true,
admin: {
description: 'Identificador estável para referências no código.',
},
},
{
name: 'text',
type: 'richText',
label: 'Texto',
required: true,
},
],
}