Skip to content

Commit

Permalink
refactor: update model template
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Feb 8, 2020
1 parent c5243b7 commit 6b08f33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/model.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
export default class ${filename} extends BaseModel {
@column({ isPrimary: true })
public id: number

public static $columns: Pick<
filename,
'id'
>
}

0 comments on commit 6b08f33

Please sign in to comment.