We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83f3cad commit 0bc7069Copy full SHA for 0bc7069
storage/framework/core/types/src/model.ts
@@ -68,22 +68,22 @@ export interface ModelOptions extends Base {
68
hasMany: {
69
model: string // should be typed as ModelName
70
foreignKey?: string
71
- }
+ }[]
72
belongsTo: {
73
74
75
- } // belongsTo: 'User'
+ }[] // belongsTo: 'User'
76
belongsToMany: {
77
model: string
78
firstForeignKey?: string
79
secondForeignKey?: string
80
pivotTable?: string
81
82
hasThrough: {
83
84
through: string
85
using: string
86
87
88
get: {
89
[key: string]: (value: any) => any
0 commit comments