import { MegaGenerator } from '@megaorm/gen'; /** * This is a base generator template for managing database tables. * * @extends `MegaGenerator` */ class [className] extends MegaGenerator { /** * Creates a generator instance. */ constructor() { super(); // The table name associated with this generator. this.set.table('[tableName]'); } /** * Creates the `[tableName]` table. */ public create(): Promise { return this.schema( this.primaryKey(), // Primary key column this.createdAt(), // CreatedAt column this.updatedAt() // UpdatedAt column // Add more columns here... ) } } export default new [className]();