// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved. // Node module: @loopback/example-multi-tenancy // 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 User extends Entity { @property({ type: 'string', }) tenantId?: string; @property({ type: 'string', id: true, generated: true, }) id?: string; @property({ type: 'string', required: true, }) name: string; constructor(data?: Partial) { super(data); } } export interface UserRelations { // describe navigational properties here } export type UserWithRelations = User & UserRelations;