Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmichael123 committed Feb 5, 2025
1 parent 73c3eb2 commit a68711c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions storage/framework/core/types/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ interface ActivityLogOption {
}

export interface Relations {
hasOne?: HasOne<ModelNames>
hasMany?: HasMany<ModelNames>
belongsTo?: BelongsTo<ModelNames>
belongsToMany?: BelongsToMany<ModelNames>
hasOneThrough?: HasOneThrough<ModelNames>
hasOne?: HasOne<ModelNames> | ModelNames[]
hasMany?: HasMany<ModelNames> | ModelNames[]
belongsTo?: BelongsTo<ModelNames> | ModelNames[]
belongsToMany?: BelongsToMany<ModelNames> | ModelNames[]
}

export interface ApiSettings {
Expand Down Expand Up @@ -151,7 +150,7 @@ export interface ModelOptions extends Base {
attributes?: Attributes

// relationships
hasOne?: HasOne<ModelNames> | string[]
hasOne?: HasOne<ModelNames> | ModelNames[]

hasMany?: HasMany<ModelNames> | ModelNames[]

Expand Down

0 comments on commit a68711c

Please sign in to comment.