mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
18 lines
434 B
JavaScript
18 lines
434 B
JavaScript
"use strict";
|
|
|
|
const Entity = require('./entity');
|
|
const dateUtils = require('../services/date_utils');
|
|
|
|
class Option extends Entity {
|
|
static get tableName() { return "options"; }
|
|
static get primaryKeyName() { return "name"; }
|
|
static get hashedProperties() { return ["name", "value"]; }
|
|
|
|
beforeSaving() {
|
|
super.beforeSaving();
|
|
|
|
this.dateModified = dateUtils.nowDate();
|
|
}
|
|
}
|
|
|
|
module.exports = Option; |