UNPKG

sequelize-ts-boilerplate

Version:

A REST API scaffolding tool designed to scale and easily generate CRUD endpoints based on database schema design

18 lines (16 loc) 549 B
import utils from "../../utils/general-utils"; import { IConfig } from "../../interfaces/config"; export class Table { properties: any[] metadata: any tableName: string tableNameUpperCase: string daoName: string constructor({tableName, metadata}) { this.properties = []; this.metadata = metadata; this.tableName = tableName; this.tableNameUpperCase = utils.capitalizeFirstLetter(this.tableName); // this.daoName = this.tableName + config.ORM_GENERATE.daoName } }