UNPKG

pure-orm

Version:

A SQL Toolkit based on pure business objects passed to and from stateful data access objects

27 lines (26 loc) 779 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.featureSwitchEntity = exports.FeatureSwitches = exports.FeatureSwitch = exports.columns = exports.tableName = void 0; exports.tableName = 'feature_switch'; exports.columns = ['id', 'label', 'on']; class FeatureSwitch { constructor(props) { this.id = props.id; this.label = props.label; this.on = props.on; } } exports.FeatureSwitch = FeatureSwitch; class FeatureSwitches { constructor({ models }) { this.models = models; return this; } } exports.FeatureSwitches = FeatureSwitches; exports.featureSwitchEntity = { tableName: exports.tableName, columns: exports.columns, Model: FeatureSwitch, Collection: FeatureSwitches };