backend/app/models/api/Export.model.js
garrettmills 54d07754ac
All checks were successful
continuous-integration/drone/push Build is passing
Start new HTML export logic
2020-10-14 23:13:09 -05:00

18 lines
506 B
JavaScript

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