bsfe_server/src/services/abstractproduct.js

10 lines
443 B
JavaScript
Raw Normal View History

import db from '../db.js';
class AbstractProductService {
async create (groupid, barcode, name, net_weight, image_filename, category, unit) {
await db.query("INSERT INTO abstract_products (group_id, barcode, name, net_weight, image_filename, category, unit) VALUES ($1, $2, $3, $4, $5, $6, $7)", [groupid, barcode, name, net_weight, image_filename, category, unit]);
}
};
export default new AbstractProductService();