Skip to content

Commit 59ad979

Browse files
chore: wip
1 parent a2ff45d commit 59ad979

File tree

1 file changed

+6
-0
lines changed
  • storage/framework/core/types/src

1 file changed

+6
-0
lines changed

storage/framework/core/types/src/model.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ export interface AuthOptions {
4444
useTwoFactor?: boolean
4545
usePasskey?: boolean
4646
}
47+
export interface LikeableOptions {
48+
tableName?: string
49+
foreignKey?: string
50+
}
4751

4852
type ActionPath = string
4953
type ActionName = string
@@ -135,6 +139,8 @@ export interface ModelOptions extends Base {
135139
observe?: string[] | boolean
136140
billable?: boolean
137141
useActivityLog?: boolean | ActivityLogOption
142+
143+
likeable: boolean | LikeableOptions
138144
}
139145

140146
attributes?: Attributes

0 commit comments

Comments
 (0)