enable endpoints for embedded code editor

This commit is contained in:
garrettmills
2020-02-09 01:58:29 -06:00
parent 3bf4c9eb1f
commit 30f61077fe
5 changed files with 128 additions and 0 deletions

View 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