@megaorm/cli
Version:
This package allows you to communicate with MegaORM via commands directly from the command line interface (CLI).
20 lines (17 loc) • 471 B
Plain Text
const { MegaModel } = require('@megaorm/model');
/**
* Each instance of this model corresponds to a row in the `[tableName]` table.
*
* @extends `MegaModel`
*/
class [className] extends MegaModel {
/**
* The name of the table associated with this model.
*/
static table = '[tableName]';
/**
* List of columns to ignore during updates.
*/
static ignore = ['id', 'created_at', 'updated_at'];
}
module.exports = { [className] };