import { inject } from '@loopback/core' ; import { DefaultCrudRepository } from '@loopback/repository' ; import { DsDataSource } from '../datasources' ; import { CoffeeShop , CoffeeShopRelations } from '../models' ; export class CoffeeShopRepository extends DefaultCrudRepository < CoffeeShop , typeof CoffeeShop . prototype . shopId , CoffeeShopRelations > { constructor ( @ inject ( 'datasources.ds' ) dataSource ) { super ( CoffeeShop , dataSource ) ; } }