trilium/src/entities/attribute.js
2018-01-30 20:12:19 -05:00

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;