Skip to content

Commit 4a1a135

Browse files
committed
style: update model template
1 parent 39d2dea commit 4a1a135

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/model.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ export default class ${filename} extends BaseModel {
55
@column({ isPrimary: true })
66
public id: number
77

8-
public static $columns: Pick<
9-
${filename},
10-
'id' | 'createdAt' | 'updatedAt'
11-
>
12-
138
@column.dateTime({ autoCreate: true })
149
public createdAt: DateTime
1510

1611
@column.dateTime({ autoCreate: true, autoUpdate: true })
1712
public updatedAt: DateTime
13+
14+
public static $columns: Pick<
15+
${filename},
16+
'id' | 'createdAt' | 'updatedAt'
17+
>
1818
}

0 commit comments

Comments
 (0)