From 7932152025ed149c017186260a42926207e90e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Sat, 20 Apr 2024 19:17:43 -0400 Subject: [PATCH] refactor(db/models): re-introduce chapter index field turns out we need it after all.. --- models/stories/chapter.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/stories/chapter.ts b/models/stories/chapter.ts index b6b8f6c..4a9d84b 100644 --- a/models/stories/chapter.ts +++ b/models/stories/chapter.ts @@ -4,7 +4,7 @@ export interface IChapter { title: string; summary: string; id?: number; - // index: number; + index: number; words?: number; notes: string; genre: string[]; @@ -25,6 +25,9 @@ export const Chapter = new Schema({ id: { type: Number, }, + index: { + type: Number, + }, summary: { type: String, },