Add database objects

This commit is contained in:
buzz-lightsnack-2007 2025-04-06 14:12:18 +08:00
parent f966e0564e
commit 3618cbbddb
3 changed files with 79 additions and 0 deletions

View file

@ -0,0 +1,10 @@
/* An object to represent an entry in the database. */
class Entry {
constructor(PROPERTIES) {
(PROPERTIES) ? Object.entries(PROPERTIES).forEach(([property, value]) => {
this[property] = value;
}) : false;
};
};
module.exports = Entry;