Skip to content

Commit

Permalink
Merge pull request #4 from fabrix-app/v1.1
Browse files Browse the repository at this point in the history
[feat] add group_label
  • Loading branch information
scott-wyatt authored Aug 28, 2018
2 parents debe780 + c395d91 commit c57f0ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions lib/api/models/Analytic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit c57f0ad

Please sign in to comment.