Advertisement
Sebuahhobi98

dbnodej

Aug 2nd, 2021
1,154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const db = require('../utils/database');
  2.  
  3. const admin = [];
  4.  
  5. module.exports = class Menu {
  6.     constructor(t) {
  7.         this.menu = t;
  8.     }
  9.  
  10.     save() {
  11.         menu.push(this);
  12.     }
  13.  
  14.     static fetchAll() {
  15.         return db.execute("SELECT * FROM menu");
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement