Files
Notes/src/entities/label.js
2018-03-24 22:02:26 -04:00

14 lines
335 B
JavaScript

"use strict";
const Entity = require('./entity');
class Label extends Entity {
static get tableName() { return "labels"; }
static get primaryKeyName() { return "labelId"; }
async getNote() {
return this.repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
}
}
module.exports = Label;