Skip to content

Commit

Permalink
Defining reference action
Browse files Browse the repository at this point in the history
  • Loading branch information
dolezel committed Nov 14, 2018
1 parent 0082805 commit 8964517
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ export type Name = string | { schema?: string, name: string }

export type Type = string | { type: string }

export type Action = 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT'

export interface ReferencesOptions {
referencesConstraintName?: string
references?: Name
onDelete?: string
onUpdate?: string
onDelete?: Action
onUpdate?: Action
match?: 'FULL' | 'SIMPLE'
}

Expand Down

0 comments on commit 8964517

Please sign in to comment.