UNPKG

@adonisjs/lucid

Version:

SQL ORM built on top of Active Record pattern

25 lines (24 loc) • 644 B
import { type CommandOptions } from '@adonisjs/core/types/ace'; import { BaseCommand } from '@adonisjs/core/ace'; /** * Command to make a new Factory */ export default class MakeFactory extends BaseCommand { static commandName: string; static description: string; static options: CommandOptions; /** * Name of the model to be used in the factory */ model: string; /** * Read the contents from this file (if the flag exists) and use * it as the raw contents */ contentsFrom: string; /** * Forcefully overwrite existing files */ force: boolean; run(): Promise<void>; }