mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
17 lines
308 B
JavaScript
17 lines
308 B
JavaScript
"use strict";
|
|
|
|
const utils = require('../services/utils');
|
|
|
|
class Entity {
|
|
constructor(repository, row) {
|
|
utils.assertArguments(repository, row);
|
|
|
|
this.repository = repository;
|
|
|
|
for (const key in row) {
|
|
this[key] = row[key];
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = Entity; |