mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
23 lines
560 B
JavaScript
23 lines
560 B
JavaScript
![]() |
"use strict";
|
||
|
|
||
|
const dateUtils = require('../../date_utils.js');
|
||
|
const AbstractEntity = require("./abstract_entity.js");
|
||
|
|
||
|
/**
|
||
|
* RecentNote represents recently visited note.
|
||
|
*/
|
||
|
class RecentNote extends AbstractEntity {
|
||
|
static get entityName() { return "recent_notes"; }
|
||
|
static get primaryKeyName() { return "noteId"; }
|
||
|
|
||
|
constructor(row) {
|
||
|
super();
|
||
|
|
||
|
this.noteId = row.noteId;
|
||
|
this.notePath = row.notePath;
|
||
|
this.utcDateCreated = row.utcDateCreated || dateUtils.utcNowDateTime();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = RecentNote;
|