fix: align PocketBase type definitions with actual schema

Remove slug field from PageContentRecord (intro/bio collections have none).
Remove number field from SectionRecord (not stored in PocketBase); derive
zero-padded display number from the order field at render time.
This commit is contained in:
Ilia Mashkov
2026-05-12 13:57:25 +03:00
parent 30f8e4be95
commit e8bf8b502e
4 changed files with 5 additions and 12 deletions
+1 -4
View File
@@ -26,12 +26,9 @@ export type BaseRecord = {
/**
* PocketBase collection for simple text blocks (Intro, Bio).
* Each collection is named after its section — no slug field.
*/
export type PageContentRecord = BaseRecord & {
/**
* Slug corresponding to the parent section
*/
slug: string;
/**
* HTML or Markdown content string
*/