Options
All
  • Public
  • Public/Protected
  • All
Menu

Sequelize instance of a Route

Index

Type aliases

Model

Model: RouteModel

Properties

createdAt

createdAt: Date

description

description: string

duration

duration: number

id

id: string

imageUrl

imageUrl: string

title

title: string

updatedAt

updatedAt: Date

Variables

define

define: defineRouteModel = defineRouteModel

toPlain

toPlain: toPlainRoute = toPlainRoute

toPlainList

toPlainList: toPlainRoutes = toPlainRoutes

Methods

addComments

  • addComments(comment: Comment): Promise<any>

addFavorites

  • addFavorites(user: User): Promise<any>

addLikes

  • addLikes(user: User): Promise<any>

addTags

  • addTags(tags: Tag[]): Promise<any>

addWaypoints

  • addWaypoints(waypoint: Waypoint): Promise<any>

getAuthor

  • getAuthor(): Promise<User>

getComments

  • getComments(): Promise<Comment[]>

getFavorites

  • getFavorites(): Promise<User[]>

getLikes

  • getLikes(): Promise<User[]>

getTags

  • getTags(): Promise<Tag[]>

getWaypoints

setAuthor

  • setAuthor(author: User): Promise<any>

Generated using TypeDoc