@ghadeerahmad/larascript
Version:
open source framwork
22 lines (19 loc) • 483 B
text/typescript
import { ColumnType } from "./enums";
import Migration from "./Migration";
export interface MigrationAttribute {
type: ColumnType,
choices?: string[],
length?: string,
nullable?: boolean,
unique?: boolean,
primary?: boolean,
autoIncrement?: boolean,
unsigned?: boolean,
foreign?: Foreign,
default?: any
}
export interface Foreign {
refrences: Migration,
refrence_key: string,
onDelete?: "NULL" | "CASCADE"
}