“init”

This commit is contained in:
2025-09-22 10:45:25 +07:00
commit 7fd2f07234
28 changed files with 1221 additions and 0 deletions

13
helpers/test_helper.js Normal file
View File

@@ -0,0 +1,13 @@
const pool = require("../config");
const usersInDb = async () => {
const users = await pool.query("SELECT * FROM USERS");
return users.rows;
};
const productsInDb = async () => {
const products = await pool.query("SELECT * FROM products");
return products.rows;
};
module.exports = { usersInDb, productsInDb };