Add EventTypes and Events collections
This commit is contained in:
18
src/collections/EventTypes.ts
Normal file
18
src/collections/EventTypes.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { CollectionConfig } from 'payload/types';
|
||||
|
||||
const EventTypes: CollectionConfig = {
|
||||
slug: 'event-types',
|
||||
admin: {
|
||||
useAsTitle: 'name'
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
type: 'text',
|
||||
required: true
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default EventTypes;
|
||||
Reference in New Issue
Block a user