garrettmills
54d07754ac
All checks were successful
continuous-integration/drone/push Build is passing
18 lines
506 B
JavaScript
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
|