Add database objects
This commit is contained in:
parent
f966e0564e
commit
3618cbbddb
3 changed files with 79 additions and 0 deletions
10
scripts/database/entry/object.JS
Normal file
10
scripts/database/entry/object.JS
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue