UNPKG

710 BTypeScriptView Raw
1import { BaseCommand } from '@adonisjs/core/build/standalone';
2export default class MakeModel extends BaseCommand {
3 static commandName: string;
4 static description: string;
5 static settings: {
6 loadApp: boolean;
7 };
8 /**
9 * The name of the model file.
10 */
11 name: string;
12 /**
13 * Defines if we generate the migration for the model.
14 */
15 migration: boolean;
16 /**
17 * Defines if we generate the controller for the model.
18 */
19 controller: boolean;
20 /**
21 * Run migrations
22 */
23 private runMakeMigration;
24 /**
25 * Make controller
26 */
27 private runMakeController;
28 /**
29 * Execute command
30 */
31 run(): Promise<void>;
32}