mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-12 08:54:00 +02:00
26 lines
521 B
JavaScript
26 lines
521 B
JavaScript
const BaseModel = require('lib/BaseModel.js');
|
|
const BaseItem = require('lib/models/BaseItem.js');
|
|
|
|
class MasterKey extends BaseItem {
|
|
|
|
static tableName() {
|
|
return 'master_keys';
|
|
}
|
|
|
|
static modelType() {
|
|
return BaseModel.TYPE_MASTER_KEY;
|
|
}
|
|
|
|
static encryptionSupported() {
|
|
return false;
|
|
}
|
|
|
|
static async serialize(item, type = null, shownKeys = null) {
|
|
let fieldNames = this.fieldNames();
|
|
fieldNames.push('type_');
|
|
return super.serialize(item, 'master_key', fieldNames);
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = MasterKey; |