mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-02 21:42:15 +08:00
15 lines
330 B
JavaScript
15 lines
330 B
JavaScript
"use strict";
|
|
|
|
const Entity = require('./entity');
|
|
const utils = require('../services/utils');
|
|
|
|
class Branch extends Entity {
|
|
static get tableName() { return "branches"; }
|
|
static get primaryKeyName() { return "branchId"; }
|
|
|
|
beforeSaving() {
|
|
this.dateModified = utils.nowDate()
|
|
}
|
|
}
|
|
|
|
module.exports = Branch; |