From c395d9192e80343c0d38f3870ba0de08c29d21fb Mon Sep 17 00:00:00 2001 From: scott-wyatt Date: Tue, 28 Aug 2018 12:06:15 -0400 Subject: [PATCH] [feat] add group_label --- lib/api/models/Analytic.ts | 11 +++++++++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/api/models/Analytic.ts b/lib/api/models/Analytic.ts index 6745d94..2ab5f2b 100644 --- a/lib/api/models/Analytic.ts +++ b/lib/api/models/Analytic.ts @@ -28,23 +28,34 @@ export class Analytic extends Model { static schema (app, Sequelize) { const schema = { + // The time of the analytic start point start: { type: Sequelize.DATE }, + // The time of the analytic end point end: { type: Sequelize.DATE }, + // The name of the analytic for searching and grouping name: { type: Sequelize.STRING }, + // If data is an array of arrays, the label in which they are grouped by + group_label: { + type: Sequelize.STRING, + allowNull: true + }, + // The labels for the analytic labels: { type: Sequelize.JSONB, defaultValue: [] }, + // An array of the data for the analytics (can be an array of arrays) data: { type: Sequelize.JSONB, defaultValue: [] }, + // Live Mode live_mode: { type: Sequelize.BOOLEAN, defaultValue: app.config.get('engine.live_mode') diff --git a/package-lock.json b/package-lock.json index f2fcf2f..880d73e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@fabrix/spool-analytics", - "version": "1.1.2", + "version": "1.1.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0b92f7c..2c31d8e 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fabrix/spool-analytics", - "version": "1.1.2", + "version": "1.1.3", "description": "Spool: Analytics for Fabrix", "homepage": "https://fabrix.app", "author": {