initial commit
This commit is contained in:
28
database/schema/cache_kv.pg.hcl
Normal file
28
database/schema/cache_kv.pg.hcl
Normal file
@@ -0,0 +1,28 @@
|
||||
table "cache_kv" {
|
||||
schema = schema.public
|
||||
column "key" {
|
||||
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]
|
||||
}
|
||||
|
||||
index "idx_cache_kv_expires_at" {
|
||||
columns = [column.expires_at]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user