2020-10-15 04:13:09 +00:00
|
|
|
const { Model } = require('flitter-orm')
|
2020-10-18 17:55:32 +00:00
|
|
|
const uuid = require('uuid/v4')
|
2020-10-15 04:13:09 +00:00
|
|
|
|
|
|
|
class ExportModel extends Model {
|
|
|
|
static get schema() {
|
|
|
|
return {
|
|
|
|
user_id: String,
|
|
|
|
create_date: { type: Date, default: () => new Date },
|
|
|
|
format: String, // 'html' | 'pdf' | 'markdown' | 'json'
|
|
|
|
subtree: { type: Boolean, default: true },
|
|
|
|
file_id: String,
|
|
|
|
PageId: String,
|
|
|
|
Active: { type: Boolean, default: true },
|
2020-10-18 17:55:32 +00:00
|
|
|
UUID: { type: String, default: uuid },
|
2020-10-15 04:13:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = exports = ExportModel
|