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; title: string;
summary: string; summary: string;
id?: number; id?: number;
// index: number; index: number;
words?: number; words?: number;
notes: string; notes: string;
genre: string[]; genre: string[];
@ -25,6 +25,9 @@ export const Chapter = new Schema<IChapter>({
id: { id: {
type: Number, type: Number,
}, },
index: {
type: Number,
},
summary: { summary: {
type: String, type: String,
}, },