Skip to content

Commit d22e46d

Browse files
committed
fix: update model stub to use isPrimary
1 parent 9b44771 commit d22e46d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/model.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
22

33
export default class ${filename} extends BaseModel {
4-
@column({ primary: true })
4+
@column({ isPrimary: true })
55
public id: number
66
}

0 commit comments

Comments
 (0)