mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 23:53:05 +00:00
Adds electoral nuclei, leaderships, updates, and WhatsApp invite flows behind campaign auth, plus the consolidated schema migration that Vercel applies on deploy.
32 lines
613 B
TypeScript
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,
|
|
},
|
|
],
|
|
}
|