mirror of
https://github.com/YuzuZensai/Termix.git
synced 2026-11-12 16:57:02 +00:00
10 lines
561 B
SQL
10 lines
561 B
SQL
CREATE TABLE "plugin_storage" (
|
|||
|
|
"id" serial PRIMARY KEY NOT NULL,
|
||
|
|
"plugin_id" varchar(255) NOT NULL,
|
||
|
|
"key" varchar(255) NOT NULL,
|
||
|
|
"value" text NOT NULL,
|
||
|
|
"updated_at" varchar(255) DEFAULT CURRENT_TIMESTAMP NOT NULL
|
||
|
|
);
|
||
|
|
--> statement-breakpoint
|
||
|
|
ALTER TABLE "plugin_storage" ADD CONSTRAINT "plugin_storage_plugin_id_plugins_id_fk" FOREIGN KEY ("plugin_id") REFERENCES "public"."plugins"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
||
|
|
CREATE UNIQUE INDEX "idx_plugin_storage_plugin_key" ON "plugin_storage" USING btree ("plugin_id","key");
|