// 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 {inject} from '@loopback/core'; import {DefaultCrudRepository, juggler} from '@loopback/repository'; import {User, UserRelations} from '../models'; export class UserRepository extends DefaultCrudRepository< User, typeof User.prototype.id, UserRelations > { constructor(@inject('datasources.db') dataSource: juggler.DataSource) { super(User, dataSource); } }