Skip to content

Commit

Permalink
chore: add connection_id to the permissions table
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Sep 23, 2024
1 parent 1f31cac commit 7288a79
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions schema/permissions.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ table "permissions" {
type = uuid
}

column "connection_id" {
null = true
type = uuid
}

column "created_by" {
null = false
type = uuid
Expand Down Expand Up @@ -95,6 +100,12 @@ table "permissions" {
on_update = NO_ACTION
on_delete = NO_ACTION
}
foreign_key "permissions_connection_id_fkey" {
columns = [column.connection_id]
ref_columns = [table.connections.column.id]
on_update = NO_ACTION
on_delete = NO_ACTION
}
foreign_key "permissions_config_id_fkey" {
columns = [column.config_id]
ref_columns = [table.config_items.column.id]
Expand Down

0 comments on commit 7288a79

Please sign in to comment.