mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
14 lines
351 B
JavaScript
14 lines
351 B
JavaScript
"use strict";
|
|
|
|
const Entity = require('./entity');
|
|
|
|
class Attribute extends Entity {
|
|
static get tableName() { return "attributes"; }
|
|
static get primaryKeyName() { return "attributeId"; }
|
|
|
|
async getNote() {
|
|
return this.repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
|
|
}
|
|
}
|
|
|
|
module.exports = Attribute; |