diff --git a/models/category.ts b/models/category.ts index e7fcd72..8eb199e 100644 --- a/models/category.ts +++ b/models/category.ts @@ -1,4 +1,4 @@ -import { Shelf } from "./shelf"; +import { MobileShelf, Shelf } from "./shelf"; export interface Category { //_id is not needed as it is created by default name: string, @@ -11,6 +11,7 @@ export interface MongoCategory extends Omit { shelves?: Array, // Shelf IDs } -export interface MobileCategory extends Category { +export interface MobileCategory extends Omit { _id: string, + shelves?: Array } \ No newline at end of file