31 lines
520 B
HCL
31 lines
520 B
HCL
table "cache_hash" {
|
|
schema = schema.public
|
|
column "key" {
|
|
type = text
|
|
null = false
|
|
}
|
|
column "field" {
|
|
type = text
|
|
null = false
|
|
}
|
|
column "value" {
|
|
type = jsonb
|
|
null = false
|
|
}
|
|
column "created_at" {
|
|
type = timestamptz
|
|
null = false
|
|
default = sql("now()")
|
|
}
|
|
column "expires_at" {
|
|
type = timestamptz
|
|
null = true
|
|
}
|
|
primary_key {
|
|
columns = [column.key, column.field]
|
|
}
|
|
|
|
index "idx_cache_hash_expires_at" {
|
|
columns = [column.expires_at]
|
|
}
|
|
} |