This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
+40
View File
@@ -0,0 +1,40 @@
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>;
}