mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-12 22:13:05 +00:00
41 lines
791 B
TypeScript
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,
|
|
},
|
|
],
|
|
}
|