backend/app/models/api/Codium.model.js

25 lines
628 B
JavaScript
Raw Normal View History

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