initial commit

This commit is contained in:
m.zare
2026-04-10 18:25:21 +03:30
commit 77ca6c34a3
263 changed files with 34470 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
-- Create "cache_hash" table
CREATE TABLE "public"."cache_hash" (
"key" text NOT NULL,
"field" text NOT NULL,
"value" jsonb NOT NULL,
"created_at" timestamptz NOT NULL DEFAULT now(),
"expires_at" timestamptz NULL,
PRIMARY KEY ("key", "field")
);
-- Create index "idx_cache_hash_expires_at" to table: "cache_hash"
CREATE INDEX "idx_cache_hash_expires_at" ON "public"."cache_hash" ("expires_at");
-- Create "cache_kv" table
CREATE TABLE "public"."cache_kv" (
"key" text NOT NULL,
"value" jsonb NOT NULL,
"created_at" timestamptz NOT NULL DEFAULT now(),
"expires_at" timestamptz NULL,
PRIMARY KEY ("key")
);
-- Create index "idx_cache_kv_expires_at" to table: "cache_kv"
CREATE INDEX "idx_cache_kv_expires_at" ON "public"."cache_kv" ("expires_at");