diff --git a/app/src/lib/admin/BlockList.svelte b/app/src/lib/admin/BlockList.svelte index a172915..bbe1402 100644 --- a/app/src/lib/admin/BlockList.svelte +++ b/app/src/lib/admin/BlockList.svelte @@ -17,7 +17,7 @@ function startHold(id: string) { holdingId = id; holdTimer = setTimeout(() => { - const idx = blocks.findIndex((b) => b.id === id); + const idx = blocks.findIndex((b: ContentBlock) => b.id === id); onDelete(id); onSelect(blocks[idx + 1]?.id || blocks[idx - 1]?.id || ''); holdingId = ''; diff --git a/app/src/lib/admin/blockDefaults.ts b/app/src/lib/admin/blockDefaults.ts index 18bb479..510f1eb 100644 --- a/app/src/lib/admin/blockDefaults.ts +++ b/app/src/lib/admin/blockDefaults.ts @@ -7,7 +7,9 @@ export const blockLabels: Record = { timeline: 'Timeline', hero: 'Hero', button: 'Button', - spacer: 'Spacer' + spacer: 'Spacer', + testimonials: 'Testimonials', + upcoming_calendar: 'Upcoming Calendar' }; export const blockTypes = Object.keys(blockLabels) as BlockType[]; @@ -44,6 +46,23 @@ export function createBlock(type: BlockType): ContentBlock { case 'spacer': base.data = { height: 64 }; break; + case 'testimonials': + base.data = { + title: 'What They Say About Me', + items: [ + { text: 'Recently I started to experience incredible whole-body orgasms. And now I know how it works. My awareness around sexuality changed for good and I feel like a boss of my own life. What a joy to have this freedom of choice.', title: 'Anne' }, + { text: 'I never thought it was possible to sense so much pleasure in my body without intense stimulations I got used to. After the series of sessions, I could feel something like a trance state by receiving only a gentle touch. That was a totally new experience for me.', title: 'Espen' }, + { text: "Eva's sexual healing methods should be accessible to everyone. I am amazed by the depth and integrity of the message she conveys through her work. I was meeting Eva for healing my body and, as a result, I reconnected with my heart and soul too.", title: 'Marie' }, + { text: "It is hard to surprise me with any sexual activity since I had many exciting experiments in my life. But I always suspected that there might be something more I have not yet felt and tried. Thanks to Eva I realised how much power I've got. Under her guidance, I have learnt to maximise my orgasmic potential and consciously play with arousal. By the way, my wife is also happy that I became enthusiastic about new sexual practices.", title: 'Jan' } + ] + }; + break; + case 'upcoming_calendar': + base.data = { + title: 'Upcoming Events', + categories: [] + }; + break; } base.data._background = { type: 'none', color: '', attachment: 'scroll', overlay: false, overlayOpacity: 40 }; return base; diff --git a/app/src/lib/admin/editors/BlockEditor.svelte b/app/src/lib/admin/editors/BlockEditor.svelte index f06e895..c65f223 100644 --- a/app/src/lib/admin/editors/BlockEditor.svelte +++ b/app/src/lib/admin/editors/BlockEditor.svelte @@ -4,10 +4,10 @@ import RichTextEditor from './RichTextEditor.svelte'; import ImageUploader from './ImageUploader.svelte'; import SegmentedControl from './SegmentedControl.svelte'; - import SpacerBlock from '../../blocks/SpacerBlock.svelte'; - let { block, onChange = (block: ContentBlock) => {} } = $props<{ + let { block, eventCategories = [], onChange = (block: ContentBlock) => {} } = $props<{ block: ContentBlock | null; + eventCategories?: string[]; onChange?: (block: ContentBlock) => void; }>(); @@ -33,6 +33,21 @@ if (!block) return; updateData({ [key]: (block.data[key] || []).filter((_: unknown, i: number) => i !== index) }); } + + function toggleCategory(category: string) { + if (!block) return; + const categories = block.data.categories || []; + updateData({ + categories: categories.includes(category) + ? categories.filter((item: string) => item !== category) + : [...categories, category] + }); + } + + function titleCase(value: string | number) { + const text = String(value); + return text.charAt(0).toUpperCase() + text.slice(1); + } {#if !block} @@ -103,7 +118,7 @@ options={['left', 'center', 'right']} value={block.data.alignment || 'left'} onChange={(v) => updateData({ alignment: v })} - formatLabel={(v) => v.charAt(0).toUpperCase() + v.slice(1)} + formatLabel={titleCase} />
@@ -112,7 +127,7 @@ options={['xs', 'sm', 'md', 'lg']} value={block.data.size || 'md'} onChange={(v) => updateData({ size: v })} - formatLabel={(v) => ({ xs: 'Extra Small', sm: 'Small', md: 'Medium', lg: 'Large' }[v] || v)} + formatLabel={(v) => String({ xs: 'Extra Small', sm: 'Small', md: 'Medium', lg: 'Large' }[String(v)] || v)} />
@@ -132,6 +147,59 @@ updateData({ height: parseInt(e.currentTarget.value) || 64 })} />
+ {:else if block.type === 'testimonials'} +
+ + + {#each block.data.items || [] as item, i} +
+ + updateArray('items', i, { title: e.currentTarget.value })} + /> + +
+ {/each} + +
+ {:else if block.type === 'upcoming_calendar'} +
+ + +
+
+

Category filters

+

Choose categories to show in this block. Leave all unchecked to show every published event.

+
+ {#if eventCategories?.length} +
+ {#each eventCategories as category} + + {/each} +
+ {:else} +

No event categories exist yet. Create events in the Calendar admin page first.

+ {/if} +
+
{/if}
diff --git a/app/src/lib/blocks/BlockRenderer.svelte b/app/src/lib/blocks/BlockRenderer.svelte index 0175e81..c6e8cca 100644 --- a/app/src/lib/blocks/BlockRenderer.svelte +++ b/app/src/lib/blocks/BlockRenderer.svelte @@ -1,5 +1,5 @@ + +
+
+ +

+ {title} +

+ + +
+ +
+ {#each testimonials as testimonial, i} +
+

+ "{testimonial.text}" +

+

+ — {testimonial.title} +

+
+ {/each} +
+
+ + +
+ + + +
+ {#each testimonials as _, i} + + {/each} +
+ + +
+
+
\ No newline at end of file diff --git a/app/src/lib/blocks/TimelineBlock.svelte b/app/src/lib/blocks/TimelineBlock.svelte index 2775f39..c81fd39 100644 --- a/app/src/lib/blocks/TimelineBlock.svelte +++ b/app/src/lib/blocks/TimelineBlock.svelte @@ -6,7 +6,7 @@ let items = $derived(data.items?.length ? data.items : [ { title: 'Your story here', description: 'Add milestones, training, or the journey behind the practice.' } ]); - let widths = $derived(items.map((_, i) => { + let widths = $derived(items.map((_: TimelineItem, i: number) => { const opts = ['w-[78%]', 'w-[85%]', 'w-[90%]', 'w-[95%]', 'w-[98%]']; return opts[(i * 7 + 3) % opts.length]; })); diff --git a/app/src/lib/blocks/UpcomingCalendarBlock.svelte b/app/src/lib/blocks/UpcomingCalendarBlock.svelte new file mode 100644 index 0000000..92704b9 --- /dev/null +++ b/app/src/lib/blocks/UpcomingCalendarBlock.svelte @@ -0,0 +1,126 @@ + + +
+
+

Calendar

+

{data.title || 'Upcoming Events'}

+
+ + {#if visibleEvents.length === 0} +
+

No upcoming events are available for the selected categories.

+
+ {:else} +
+ {#each months as month} +
+

{month.label}

+
+ {#each weekdays as weekday}
{weekday}
{/each} +
+
+ {#each month.days as day} +
+
+ {day.dayNumber} +
+
+ {#each eventsForDay(day.date) as event} + {@const href = normalizeLink(event.link)} + {@const label = `${event.name}${event.description ? `: ${event.description}` : ''}`} + {@const segment = segmentMeta(event, day.date)} + {#if href} + + + {segment.showLabel ? event.name : '\u00a0'} + + + {:else} + + + {segment.showLabel ? event.name : '\u00a0'} + + + {/if} + {/each} +
+
+ {/each} +
+
+ {/each} +
+ {/if} +
diff --git a/app/src/lib/calendar.ts b/app/src/lib/calendar.ts new file mode 100644 index 0000000..6de9608 --- /dev/null +++ b/app/src/lib/calendar.ts @@ -0,0 +1,199 @@ +import type { CalendarEventRecord, ContentBlock } from '$lib/types'; + +type UnknownRecord = Record; + +export type CalendarDay = { + date: Date; + dateKey: string; + dayNumber: number; + inMonth: boolean; + isToday: boolean; +}; + +export type CalendarMonth = { + date: Date; + label: string; + days: CalendarDay[]; +}; + +export function hasUpcomingCalendarBlock(blocks: ContentBlock[] = []) { + return blocks.some((block) => block.type === 'upcoming_calendar'); +} + +export function toDateInput(value?: string | null) { + if (!value) return ''; + return value.slice(0, 10); +} + +export function toDatetimeInput(value?: string | null) { + if (!value) return ''; + const date = new Date(value); + if (Number.isNaN(date.getTime())) return value.slice(0, 16); + const offset = date.getTimezoneOffset(); + const local = new Date(date.getTime() - offset * 60_000); + return local.toISOString().slice(0, 16); +} + +export function dateInputToPocketBase(value: string, allDay = true) { + if (!value) return ''; + if (!allDay && value.includes('T')) { + return new Date(value).toISOString(); + } + return `${value.slice(0, 10)} 00:00:00.000Z`; +} + +export function parseEventDate(value?: string | null) { + if (!value) return null; + const datePart = value.slice(0, 10); + const [year, month, day] = datePart.split('-').map(Number); + if (!year || !month || !day) return null; + return new Date(year, month - 1, day); +} + +export function dateKey(date: Date) { + const year = date.getFullYear(); + const month = `${date.getMonth() + 1}`.padStart(2, '0'); + const day = `${date.getDate()}`.padStart(2, '0'); + return `${year}-${month}-${day}`; +} + +export function addDays(date: Date, days: number) { + const copy = new Date(date); + copy.setDate(copy.getDate() + days); + return copy; +} + +export function addMonths(date: Date, months: number) { + return new Date(date.getFullYear(), date.getMonth() + months, 1); +} + +export function startOfMonth(date = new Date()) { + return new Date(date.getFullYear(), date.getMonth(), 1); +} + +export function endOfMonth(date = new Date()) { + return new Date(date.getFullYear(), date.getMonth() + 1, 0); +} + +export function getUpcomingCalendarRange(reference = new Date()) { + const start = startOfMonth(reference); + const end = endOfMonth(addMonths(reference, 1)); + return { start, end }; +} + +export function createCalendarMonth(monthDate: Date, reference = new Date()): CalendarMonth { + const first = startOfMonth(monthDate); + const monthEnd = endOfMonth(monthDate); + const gridStart = addDays(first, -first.getDay()); + const gridEnd = addDays(monthEnd, 6 - monthEnd.getDay()); + const todayKey = dateKey(reference); + const days: CalendarDay[] = []; + + for (let day = new Date(gridStart); day <= gridEnd; day = addDays(day, 1)) { + days.push({ + date: new Date(day), + dateKey: dateKey(day), + dayNumber: day.getDate(), + inMonth: day.getMonth() === first.getMonth(), + isToday: dateKey(day) === todayKey + }); + } + + return { + date: first, + label: first.toLocaleDateString(undefined, { month: 'long', year: 'numeric' }), + days + }; +} + +export function getCurrentAndNextMonths(reference = new Date()) { + const current = startOfMonth(reference); + return [createCalendarMonth(current, reference), createCalendarMonth(addMonths(current, 1), reference)]; +} + +export function rangesOverlap(startA: Date, endA: Date, startB: Date, endB: Date) { + return startA <= endB && endA >= startB; +} + +export function eventRange(event: Pick) { + const start = parseEventDate(event.start) || new Date(); + const end = parseEventDate(event.end) || start; + return end < start ? { start: end, end: start } : { start, end }; +} + +export function eventOverlapsDay(event: CalendarEventRecord, day: Date) { + const { start, end } = eventRange(event); + return rangesOverlap(start, end, day, day); +} + +export function eventOverlapsRange(event: CalendarEventRecord, start: Date, end: Date) { + const range = eventRange(event); + return rangesOverlap(range.start, range.end, start, end); +} + +export function normalizeEvent(record: UnknownRecord): CalendarEventRecord { + return { + id: String(record.id || ''), + name: String(record.name || ''), + start: String(record.start || ''), + end: record.end ? String(record.end) : '', + description: record.description ? String(record.description) : '', + color: String(record.color || '#8a9a7b'), + link: record.link ? String(record.link) : '', + categories: normalizeCategories(record.categories), + published: Boolean(record.published), + allDay: record.allDay !== false + }; +} + +export function normalizeCategories(value: unknown): string[] { + if (Array.isArray(value)) { + return [...new Set(value.map((item) => String(item).trim()).filter(Boolean))]; + } + if (typeof value === 'string') { + return [...new Set(value.split(',').map((item) => item.trim()).filter(Boolean))]; + } + return []; +} + +export function categoriesToText(categories: string[] = []) { + return categories.join(', '); +} + +export function extractCategories(events: CalendarEventRecord[]) { + return [...new Set(events.flatMap((event) => event.categories || []))].sort((a, b) => a.localeCompare(b)); +} + +export function eventMatchesCategories(event: CalendarEventRecord, categories: string[] = []) { + if (!categories.length) return true; + return event.categories?.some((category) => categories.includes(category)); +} + +export function sortEvents(events: CalendarEventRecord[]) { + return [...events].sort((a, b) => { + const startA = parseEventDate(a.start)?.getTime() ?? 0; + const startB = parseEventDate(b.start)?.getTime() ?? 0; + return startA - startB || a.name.localeCompare(b.name); + }); +} + +export function formatEventDateRange(event: CalendarEventRecord) { + const start = parseEventDate(event.start); + const end = parseEventDate(event.end); + if (!start) return ''; + const formatter = new Intl.DateTimeFormat(undefined, { month: 'short', day: 'numeric' }); + if (!end || dateKey(start) === dateKey(end)) return formatter.format(start); + return `${formatter.format(start)} – ${formatter.format(end)}`; +} + +export function normalizeLink(link?: string) { + const value = String(link || '').trim(); + if (!value) return ''; + if (value.startsWith('/') || value.startsWith('#') || value.startsWith('mailto:') || value.startsWith('tel:')) return value; + if (/^https?:\/\//i.test(value)) return value; + return `/${value.replace(/^\/+/, '')}`; +} + +export function isExternalLink(link?: string) { + return /^https?:\/\//i.test(String(link || '')); +} diff --git a/app/src/lib/exportImport.ts b/app/src/lib/exportImport.ts index 59b225a..856d211 100644 --- a/app/src/lib/exportImport.ts +++ b/app/src/lib/exportImport.ts @@ -1,4 +1,4 @@ -import type { ContentBlock, PageRecord } from '$lib/types'; +import type { CalendarEventRecord, ContentBlock } from '$lib/types'; /** * The portable export format. @@ -17,6 +17,7 @@ export type SiteExport = { key: string; data: Record; }[]; + events?: Omit[]; /** Maps original PocketBase file URLs → base64 data-URI */ images: Record; }; diff --git a/app/src/lib/types.ts b/app/src/lib/types.ts index fbe25cc..cf27d70 100644 --- a/app/src/lib/types.ts +++ b/app/src/lib/types.ts @@ -4,7 +4,9 @@ export type BlockType = | 'timeline' | 'hero' | 'button' - | 'spacer'; + | 'spacer' + | 'testimonials' + | 'upcoming_calendar'; export type BlockBackground = { type: 'none' | 'color' | 'image'; @@ -36,6 +38,24 @@ export type PageRecord = { published: boolean; }; +export type CalendarEventRecord = { + id: string; + name: string; + start: string; + end?: string; + description?: string; + color: string; + link?: string; + categories: string[]; + published: boolean; + allDay: boolean; +}; + +export type UpcomingCalendarBlockData = { + title?: string; + categories?: string[]; +}; + export type HeaderGlobal = { logo: { url: string; alt: string }; navLinks: { label: string; href: string }[]; diff --git a/app/src/routes/+page.server.ts b/app/src/routes/+page.server.ts index bbd76ad..5adb67f 100644 --- a/app/src/routes/+page.server.ts +++ b/app/src/routes/+page.server.ts @@ -1,5 +1,6 @@ import { error } from '@sveltejs/kit'; -import { defaultHeader } from '$lib/types'; +import { defaultHeader, type CalendarEventRecord } from '$lib/types'; +import { eventOverlapsRange, getUpcomingCalendarRange, hasUpcomingCalendarBlock, normalizeEvent } from '$lib/calendar'; import type { PageServerLoad } from './$types'; export const load: PageServerLoad = async ({ locals }) => { @@ -16,7 +17,16 @@ export const load: PageServerLoad = async ({ locals }) => { const page = await locals.pb .collection('pages') .getFirstListItem(`slug = "${homeSlug}" && published = true`); - return { page }; + let calendarEvents: CalendarEventRecord[] = []; + if (hasUpcomingCalendarBlock(page.blocks || [])) { + const range = getUpcomingCalendarRange(); + const events = await locals.pb.collection('events').getFullList({ + filter: `published = true && start <= "${range.end.toISOString()}"`, + sort: 'start' + }); + calendarEvents = events.map((event) => normalizeEvent(event)).filter((event) => eventOverlapsRange(event, range.start, range.end)); + } + return { page, calendarEvents }; } catch { throw error(404, 'Page not found'); } diff --git a/app/src/routes/+page.svelte b/app/src/routes/+page.svelte index cda4dfa..4a533f1 100644 --- a/app/src/routes/+page.svelte +++ b/app/src/routes/+page.svelte @@ -8,4 +8,4 @@ {data.page.title} - + diff --git a/app/src/routes/[slug]/+page.server.ts b/app/src/routes/[slug]/+page.server.ts index 7cefcba..ce5ffea 100644 --- a/app/src/routes/[slug]/+page.server.ts +++ b/app/src/routes/[slug]/+page.server.ts @@ -1,4 +1,6 @@ import { error } from '@sveltejs/kit'; +import { eventOverlapsRange, getUpcomingCalendarRange, hasUpcomingCalendarBlock, normalizeEvent } from '$lib/calendar'; +import type { CalendarEventRecord } from '$lib/types'; import type { PageServerLoad } from './$types'; export const load: PageServerLoad = async ({ params, locals }) => { @@ -6,7 +8,16 @@ export const load: PageServerLoad = async ({ params, locals }) => { const page = await locals.pb .collection('pages') .getFirstListItem(`slug = "${params.slug}" && published = true`); - return { page }; + let calendarEvents: CalendarEventRecord[] = []; + if (hasUpcomingCalendarBlock(page.blocks || [])) { + const range = getUpcomingCalendarRange(); + const events = await locals.pb.collection('events').getFullList({ + filter: `published = true && start <= "${range.end.toISOString()}"`, + sort: 'start' + }); + calendarEvents = events.map((event) => normalizeEvent(event)).filter((event) => eventOverlapsRange(event, range.start, range.end)); + } + return { page, calendarEvents }; } catch { throw error(404, 'Page not found'); } diff --git a/app/src/routes/[slug]/+page.svelte b/app/src/routes/[slug]/+page.svelte index 507133e..bd8cd32 100644 --- a/app/src/routes/[slug]/+page.svelte +++ b/app/src/routes/[slug]/+page.svelte @@ -7,4 +7,4 @@ {data.page.title} - + diff --git a/app/src/routes/admin/+layout.svelte b/app/src/routes/admin/+layout.svelte index ea2a188..31af058 100644 --- a/app/src/routes/admin/+layout.svelte +++ b/app/src/routes/admin/+layout.svelte @@ -39,7 +39,7 @@ throw new Error(err?.message || `Import failed (${res.status})`); } const result = await res.json(); - const msg = `Imported ${result.pagesImported} page(s), ${result.globalsImported} global(s), ${result.imagesUploaded} image(s).`; + const msg = `Imported ${result.pagesImported} page(s), ${result.globalsImported} global(s), ${result.eventsImported || 0} event(s), ${result.imagesUploaded} image(s).`; importStatus = { ok: true, message: result.errors?.length ? msg + ` ${result.errors.length} error(s).` : msg }; setTimeout(() => location.reload(), 1500); } catch (e) { @@ -58,6 +58,7 @@
Pages + Calendar Globals + + {#if form?.message}
{form.message}
{/if} + +
+
+ +

{month.label}

+ +
+ +
+ {#each weekdays as weekday}
{weekday}
{/each} +
+
+ {#each month.days as day} +
+ +
+ {#each eventsForDay(day.date) as event} + + {/each} +
+
+ {/each} +
+
+ +
+

All events

+
+ + + + {#each events as event} + + + + + + + + {/each} + +
NameDateCategoriesStatus
{event.name}{formatEventDateRange(event)}{event.categories.join(', ')}{event.published ? 'Published' : 'Draft'}
+
+
+
+ +{#if showEditor} +
+
+
+

{draft.id ? 'Edit event' : 'Create event'}

+ +
+ +
+ + + + + + + +
+ + +
+ +
+ + +
+ + + +
+ + +
+ +
+ + {#if allCategories.length} +
+ {#each allCategories as category} + + {/each} +
+ {/if} +
+ +
+ {#if draft.id} + + {:else} + + {/if} +
+ + +
+
+
+
+
+{/if} diff --git a/app/src/routes/admin/pages/[slug]/+page.server.ts b/app/src/routes/admin/pages/[slug]/+page.server.ts index 9921fd2..953d5ad 100644 --- a/app/src/routes/admin/pages/[slug]/+page.server.ts +++ b/app/src/routes/admin/pages/[slug]/+page.server.ts @@ -1,9 +1,12 @@ import { fail, redirect } from '@sveltejs/kit'; +import { extractCategories, normalizeEvent } from '$lib/calendar'; import type { Actions, PageServerLoad } from './$types'; export const load: PageServerLoad = async ({ params, locals }) => { const page = await locals.pb.collection('pages').getFirstListItem(`slug = "${params.slug}"`); - return { page }; + const events = await locals.pb.collection('events').getFullList({ sort: 'start' }).catch(() => []); + const eventCategories = extractCategories(events.map((event) => normalizeEvent(event))); + return { page, eventCategories }; }; export const actions: Actions = { diff --git a/app/src/routes/admin/pages/[slug]/+page.svelte b/app/src/routes/admin/pages/[slug]/+page.svelte index 2c9c6ea..b61c16f 100644 --- a/app/src/routes/admin/pages/[slug]/+page.svelte +++ b/app/src/routes/admin/pages/[slug]/+page.svelte @@ -87,7 +87,7 @@ (selectedId = id)} onDelete={deleteBlock} onMove={moveBlock} /> - + diff --git a/pb_schema.json b/pb_schema.json index b8e3836..0c9501d 100644 --- a/pb_schema.json +++ b/pb_schema.json @@ -158,5 +158,137 @@ ], "indexes": [], "options": {} + }, + { + "id": "pbc_events0001", + "name": "events", + "type": "base", + "system": false, + "listRule": "published = true || @request.auth.id != ''", + "viewRule": "published = true || @request.auth.id != ''", + "createRule": "@request.auth.id != ''", + "updateRule": "@request.auth.id != ''", + "deleteRule": "@request.auth.id != ''", + "fields": [ + { + "id": "text_eventname", + "name": "name", + "type": "text", + "system": false, + "required": true, + "presentable": true, + "unique": false, + "options": { + "min": null, + "max": 180, + "pattern": "" + } + }, + { + "id": "date_eventstart", + "name": "start", + "type": "date", + "system": false, + "required": true, + "presentable": false, + "unique": false, + "options": { + "min": "", + "max": "" + } + }, + { + "id": "date_eventend", + "name": "end", + "type": "date", + "system": false, + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": "", + "max": "" + } + }, + { + "id": "text_eventdesc", + "name": "description", + "type": "text", + "system": false, + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": 2000, + "pattern": "" + } + }, + { + "id": "text_eventcolor", + "name": "color", + "type": "text", + "system": false, + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": 32, + "pattern": "" + } + }, + { + "id": "url_eventlink", + "name": "link", + "type": "text", + "system": false, + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": 500, + "pattern": "" + } + }, + { + "id": "json_eventcats", + "name": "categories", + "type": "json", + "system": false, + "required": false, + "presentable": false, + "unique": false, + "options": { + "maxSize": 200000 + } + }, + { + "id": "bool_eventpub", + "name": "published", + "type": "bool", + "system": false, + "required": false, + "presentable": false, + "unique": false, + "options": {} + }, + { + "id": "bool_eventallday", + "name": "allDay", + "type": "bool", + "system": false, + "required": false, + "presentable": false, + "unique": false, + "options": {} + } + ], + "indexes": [ + "CREATE INDEX `idx_events_start` ON `events` (`start`)", + "CREATE INDEX `idx_events_published` ON `events` (`published`)" + ], + "options": {} } ]