backend/app/models/api/Export.model.js

20 lines
589 B
JavaScript
Raw Normal View History

2020-10-15 04:13:09 +00:00
const { Model } = require('flitter-orm')
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 },
UUID: { type: String, default: uuid },
2020-10-15 04:13:09 +00:00
}
}
}
module.exports = exports = ExportModel