@kohanajs/mod-queue-loop
Version:
The Cron job for KohanaJS
25 lines (20 loc) • 453 B
JavaScript
const {ORM} = require('kohanajs');
class Queue extends ORM{
queue_state_id = 1;
name = null;
model = null;
model_id = null;
action = null;
static joinTablePrefix = 'queue';
static tableName = 'queues';
static fields = new Map([
["name", "String"],
["model", "String"],
["model_id", "Int"],
["action", "String"]
]);
static belongsTo = new Map([
["queue_state_id", "QueueState"]
]);
}
module.exports = Queue;