// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved. // Node module: @loopback/example-express-composition // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT import {Entity, model, property} from '@loopback/repository'; @model() export class Note extends Entity { @property({ type: 'number', id: true, }) id?: number; @property({ type: 'string', required: true, }) title: string; @property({ type: 'string', }) content?: string; constructor(data?: Partial) { super(data); } } export interface NoteRelations { // describe navigational properties here } export type NoteWithRelations = Note & NoteRelations;