import * as productRestaurantService from '../services/produc-restaurant-service'; export class ProductRestaurants { public id :number | undefined; public idRestaurants :number | undefined; public idProduct :number | undefined; public currentPriceUnit1 :number | undefined; public originalPrice :number | undefined; public stock :number | undefined; public isDeleted :boolean | undefined; public insertUser :string | undefined; public createdAt :Date | undefined; public updateUser :string | undefined; public updatedAt :Date | undefined; public safetyStock :number | undefined; public idStatus :number | undefined; constructor(){} // class methods getKeysTable () { var tableId = []; tableId.push("id"); return tableId; }; async byId(id: number) { return await productRestaurantService.byId(id); } async byRestaurantIdAndProduct(idRestaurant :number, productId :number ) { return await productRestaurantService.byRestaurantIdAndProduct(idRestaurant, productId); } async save(productRestaurants:ProductRestaurants) { return await productRestaurantService.save(productRestaurants); } async updateById(productRestaurants:ProductRestaurants) { return await productRestaurantService.update(productRestaurants); } async remove(productRestaurants:ProductRestaurants) { return await productRestaurantService.remove(productRestaurants); } }