How to use the fulcrum-core.ChoiceList function in fulcrum-core

To help you get started, we’ve selected a few fulcrum-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fulcrumapp / fulcrum-desktop / app / main / models / choice-list.js View on Github external
'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _minidb = require('minidb');

var _fulcrumCore = require('fulcrum-core');

class ChoiceList extends _fulcrumCore.ChoiceList {
  static get tableName() {
    return 'choice_lists';
  }

  static get columns() {
    return [{ name: 'accountRowID', column: 'account_id', type: 'integer', null: false }, { name: 'id', column: 'resource_id', type: 'string', null: false }, { name: 'name', column: 'name', type: 'string', null: false }, { name: 'description', column: 'description', type: 'string' }, { name: 'version', column: 'version', type: 'integer', null: false }, { name: 'choicesJSON', column: 'choices', type: 'json', null: false }, { name: 'createdAt', column: 'server_created_at', type: 'datetime' }, { name: 'updatedAt', column: 'server_updated_at', type: 'datetime' }, { name: 'deletedAt', column: 'deleted_at', type: 'datetime' }];
  }
}

exports.default = ChoiceList;
_minidb.PersistentObject.register(ChoiceList);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tYWluL21vZGVscy9jaG9pY2UtbGlzdC5qcyJdLCJuYW1lcyI6WyJDaG9pY2VMaXN0IiwidGFibGVOYW1lIiwiY29sdW1ucyIsIm5hbWUiLCJjb2x1bW4iLCJ0eXBlIiwibnVsbCIsInJlZ2lzdGVyIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7QUFDQTs7QUFFZSxNQUFNQSxVQUFOLGlDQUF3QztBQUNyRCxhQUFXQyxTQUFYLEdBQXVCO0FBQ3JCLFdBQU8sY0FBUDtBQUNEOztBQUVELGFBQVdDLE9BQVgsR0FBcUI7QUFDbkIsV0FBTyxDQUNMLEVBQUVDLE1BQU0sY0FBUixFQUF3QkMsUUFBUSxZQUFoQyxFQUE4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TogJ2RlbGV0ZWRBdCcsIGNvbHVtbjogJ2RlbGV0ZWRfYXQnLCB0eXBlOiAnZGF0ZXRpbWUnIH1cbiAgICBdO1xuICB9XG59XG5cblBlcnNpc3RlbnRPYmplY3QucmVnaXN0ZXIoQ2hvaWNlTGlzdCk7XG4iXX0=
github fulcrumapp / fulcrum-desktop / dist / models / choice-list.js View on Github external
'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _minidb = require('minidb');

var _fulcrumCore = require('fulcrum-core');

class ChoiceList extends _fulcrumCore.ChoiceList {
  static get tableName() {
    return 'choice_lists';
  }

  static get columns() {
    return [{ name: 'accountRowID', column: 'account_id', type: 'integer', null: false }, { name: 'id', column: 'resource_id', type: 'string', null: false }, { name: 'name', column: 'name', type: 'string', null: false }, { name: 'description', column: 'description', type: 'string' }, { name: 'choicesJSON', column: 'choices', type: 'json', null: false }, { name: 'createdAt', column: 'created_at', type: 'datetime', null: false }, { name: 'updatedAt', column: 'updated_at', type: 'datetime', null: false }, { name: 'deletedAt', column: 'deleted_at', type: 'datetime' }];
  }
}

exports.default = ChoiceList;
_minidb.PersistentObject.register(ChoiceList);
//# sourceMappingURL=choice-list.js.map