UNPKG

pure-orm

Version:

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

26 lines (25 loc) 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tagEntity = exports.Tags = exports.Tag = exports.columns = exports.tableName = void 0; exports.tableName = 'tag'; exports.columns = ['id', 'name', 'slug']; class Tag { constructor(props) { this.id = props.id; this.name = props.name; this.slug = props.slug; } } exports.Tag = Tag; class Tags { constructor({ models }) { this.models = models; } } exports.Tags = Tags; exports.tagEntity = { tableName: exports.tableName, columns: exports.columns, Model: Tag, Collection: Tags };