initial commit
This commit is contained in:
31
database/schema/cache_hash.pg.hcl
Normal file
31
database/schema/cache_hash.pg.hcl
Normal file
@@ -0,0 +1,31 @@
|
||||
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]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user