import { Category } from "./category";
import { Shelf } from "./shelf";
import { Word } from "./word";

export interface User {
    _id: string,
    name: string,
    email: string,
    password: string,
    isVerified: boolean,
    otp: number,
    categories?: Array<Category>,
    uncategorised?: Shelf,
    favouriteWords?: Array<Word>,
}

export interface MongoUser extends Omit<User, "categories" | "uncategorised" | "favouriteWords"> {
    categories?: Array<string> // Category IDs,
    uncategorised?: string, // Shelf ID
    favouriteWords?: Array<string> // Favourite Words ID
}