Skip to content

Commit 58232cd

Browse files
chore: wip
1 parent 23c78d9 commit 58232cd

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ export interface SeedOptions {
1313
count: number
1414
}
1515

16+
type LogAttribute = string
17+
18+
type ActivityLogOption = {
19+
exclude: LogAttribute[]
20+
include: LogAttribute[] // default to “*”
21+
logOnly: LogAttribute[]
22+
}
23+
1624
interface BelongsToManyType {
1725
model: ModelNames
1826
firstForeignKey?: string
@@ -72,6 +80,7 @@ export interface ModelOptions extends Base {
7280
searchable?: boolean | SearchOptions // useSearch alias
7381
useApi?: ApiOptions | boolean
7482
observe?: string[] | boolean
83+
useActivityLog?: boolean | ActivityLogOption
7584
}
7685

7786
attributes: Attributes

0 commit comments

Comments
 (0)