backend/app/models/api/Export.model.js
garrettmills b5b2a7cd85
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Rewrite HTML export to support all node types (#3)
2020-10-18 12:55:32 -05:00

20 lines
589 B
JavaScript

const { Model } = require('flitter-orm')
const uuid = require('uuid/v4')
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 },
}
}
}
module.exports = exports = ExportModel