UNPKG

alapa

Version:

A cutting-edge web development framework designed to revolutionize the way developers build modern web applications.

12 lines (11 loc) 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TableModel = TableModel; const typeorm_1 = require("typeorm"); /** * This decorator is used to mark classes that will be an entity (table or document depend on database type). * Database schema will be created for all classes decorated with it, and Repository can be retrieved and used for it. */ function TableModel(name, options) { return (0, typeorm_1.Entity)(name, options); }