basic entity support with lazy loaded relations

This commit is contained in:
azivner
2018-01-29 18:34:59 -05:00
parent b44412bc32
commit 587f3d833e
6 changed files with 95 additions and 13 deletions

13
src/entities/entity.js Normal file
View File

@@ -0,0 +1,13 @@
"use strict";
class Entity {
constructor(sql, row) {
this.sql = sql;
for (const key in row) {
this[key] = row[key];
}
}
}
module.exports = Entity;