mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
13 lines
193 B
JavaScript
13 lines
193 B
JavaScript
|
|
"use strict";
|
||
|
|
|
||
|
|
class Entity {
|
||
|
|
constructor(sql, row) {
|
||
|
|
this.sql = sql;
|
||
|
|
|
||
|
|
for (const key in row) {
|
||
|
|
this[key] = row[key];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = Entity;
|