mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-04 15:56:24 +02:00
41 lines
869 B
TypeScript
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>;
|
|
}
|