UNPKG

@megaorm/cli

Version:

This package allows you to communicate with MegaORM via commands directly from the command line interface (CLI).

18 lines (16 loc) 456 B
import { MegaModel } from '@megaorm/model'; /** * Each instance of this model corresponds to a row in the `[tableName]` table. * * @extends `MegaModel` */ export class [className] extends MegaModel { /** * The name of the table associated with this model. */ protected static table = '[tableName]'; /** * List of columns to ignore during updates. */ protected static ignore = ['id', 'created_at', 'updated_at']; }