Files
2023-11-24 22:35:41 +01:00

41 lines
869 B
TypeScript

import { BaseCommand } from '@adonisjs/core/build/standalone';
export default class MakeModel extends BaseCommand {
static commandName: string;
static description: string;
static settings: {
loadApp: boolean;
};
/**
* The name of the model file.
*/
name: string;
/**
* Defines if we generate the migration for the model.
*/
migration: boolean;
/**
* Defines if we generate the controller for the model.
*/
controller: boolean;
/**
* Defines if we generate the factory for the model.
*/
factory: boolean;
/**
* Run migrations
*/
private runMakeMigration;
/**
* Make controller
*/
private runMakeController;
/**
* Make factory
*/
private runMakeFactory;
/**
* Execute command
*/
run(): Promise<void>;
}