backend/app/models/api/Codium.model.js
2020-02-09 01:58:29 -06:00

25 lines
628 B
JavaScript

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