import type { JsonValue } from '@levo.libraries/types'; import type { LemaField } from './field'; export type LemaIndex = { name: string; columns: string[]; kind: 'FULLTEXT' | 'UNIQUE'; }; type collection = { id: string; identifier: string | null; name: string; description: string | null; key: string; icon: JsonValue | null; title_field: string | null; email_field: string | null; mobile_field: string | null; hidden: boolean; readonly: boolean; requires_signin: boolean; allow_draft: boolean; allow_multiple: boolean; allow_edit: boolean; allow_public_view: string | null; allow_public_submit: string | null; public_submit_set_by: string | null; kind: string; settings: JsonValue; module_name: string | null; created_by: string | null; updated_by: string | null; created_at: Date; updated_at: Date; on_submit: JsonValue[]; on_update: JsonValue[]; }; export type LemaCollection = Partial & { key: string; workspace_id?: string; fields: LemaField[]; indexes?: LemaIndex[]; with_visit?: boolean; }; export {};