teqo-backup/src/collections/Signature.ts
Francisco Ignácio Fontoura Solla f804da60eb Including page mandato-no-whatsapp
2026-03-14 18:07:40 -03:00

41 lines
791 B
TypeScript

import { CollectionConfig } from 'payload'
export const Signature: CollectionConfig = {
slug: 'signature',
labels: {
singular: 'Assinatura',
plural: 'Assinaturas',
},
admin: {
group: 'Abaixo-assinados',
},
fields: [
{
type: 'relationship',
name: 'contact',
label: 'Contato',
required: true,
relationTo: 'contact',
},
{
type: 'relationship',
name: 'petition',
label: 'Abaixo-assinado',
required: true,
relationTo: 'petition',
},
{
type: 'relationship',
name: 'consent',
label: 'Consentimento',
required: true,
relationTo: 'consent',
},
{
name: 'comment',
type: 'textarea',
label: 'Comentario',
maxLength: 1000,
},
],
}