refactor(db/models): re-introduce chapter index field

turns out we need it after all..
This commit is contained in:
parent a88f418901
commit 7932152025
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -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<IChapter>({
id: {
type: Number,
},
index: {
type: Number,
},
summary: {
type: String,
},