Skip to content

Commit 6b08f33

Browse files
committed
refactor: update model template
1 parent c5243b7 commit 6b08f33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/model.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
33
export default class ${filename} extends BaseModel {
44
@column({ isPrimary: true })
55
public id: number
6+
7+
public static $columns: Pick<
8+
filename,
9+
'id'
10+
>
611
}

0 commit comments

Comments
 (0)