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

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

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