enable endpoints for embedded code editor
This commit is contained in:
24
app/models/api/Codium.model.js
Normal file
24
app/models/api/Codium.model.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const Model = require('flitter-orm/src/model/Model')
|
||||
const uuid = require('uuid/v4')
|
||||
|
||||
/*
|
||||
* Codium Model
|
||||
* -------------------------------------------------------------
|
||||
* Put some description here!
|
||||
*/
|
||||
class Codium extends Model {
|
||||
static get schema() {
|
||||
// Return a flitter-orm schema here.
|
||||
return {
|
||||
language: {type: String, default: 'javascript'},
|
||||
NodeId: String,
|
||||
PageId: String,
|
||||
code: String,
|
||||
UUID: { type: String, default: () => uuid() },
|
||||
}
|
||||
}
|
||||
|
||||
// Static and instance methods can go here
|
||||
}
|
||||
|
||||
module.exports = exports = Codium
|
||||
Reference in New Issue
Block a user