Skip to content

Commit

Permalink
feat: add properties table (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored Apr 27, 2023
1 parent 7220c01 commit 090c6b5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions schema/properties.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
table "properties" {
schema = schema.public
column "name" {
null = false
type = text
}
column "value" {
null = false
type = text
}
column "created_by" {
null = true
type = uuid
}
column "created_at" {
null = true
type = timestamptz
default = sql("now()")
}
column "updated_at" {
null = true
type = timestamptz
default = sql("now()")
}
column "deleted_at" {
null = true
type = timestamptz
}
primary_key {
columns = [column.name]
}
foreign_key "properties_created_by_fkey" {
columns = [column.created_by]
ref_columns = [table.people.column.id]
on_update = NO_ACTION
on_delete = NO_ACTION
}
}

0 comments on commit 090c6b5

Please sign in to comment.