Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseModel
    • default

Index

Constructors

constructor

  • Returns default

Properties

coverImgSrc

coverImgSrc: string

Cover image for the menu to be displayed

createdAt

createdAt: DateTime

Which date the menu was created at

description

description: string

The name of the menu

hidden

hidden: boolean

Wether if the menu will be displayed or not

iconImgSrc

iconImgSrc: string

Icon image for the menu to be displayed

id

id: number

The id of the menu

items

items: HasMany<typeof default, LucidModel>

The items that belong inside the menu

locationId

locationId: number

The id of the location the menu belongs to

name

name: string

The name of the menu

nationId

nationId: number

The id of the nation the menu belongs to

updatedAt

updatedAt: DateTime

Which date the menu was updated at

Static showHidden

showHidden: QueryScope<(query: ModelQueryBuilderContract<LucidModel, LucidRow>, show: boolean) => void> = ...

filtering options to query menus for wether they are hidden or not

param

the boolean for the menu to query for

Methods

Static allMenus

  • allMenus(locationId: number): Promise<default[]>
  • Method to display menus depending on specific location

    Parameters

    • locationId: number

    Returns Promise<default[]>

Generated using TypeDoc