Files
base/database/schema/cache_hash.pg.hcl
2026-04-10 18:25:21 +03:30

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]
}
}