mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
basic entity support with lazy loaded relations
This commit is contained in:
13
src/entities/entity.js
Normal file
13
src/entities/entity.js
Normal 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;
|
||||
Reference in New Issue
Block a user