Files
moeka-project/packages/drizzle-duckdb-wasm/playground/drizzle/0001_parched_silver_centurion.sql
T
2025-03-02 00:55:06 +08:00

46 lines
1.3 KiB
SQL

CREATE TABLE "edge_groups" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"source" uuid,
"target" uuid,
CONSTRAINT "edge_groups_id_unique" UNIQUE("id")
);
--> statement-breakpoint
CREATE TABLE "edge_owners" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"source" uuid,
"target" uuid,
CONSTRAINT "edge_owners_id_unique" UNIQUE("id")
);
--> statement-breakpoint
CREATE TABLE "edge_pets" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"source" uuid,
"target" uuid,
CONSTRAINT "edge_pets_id_unique" UNIQUE("id")
);
--> statement-breakpoint
CREATE TABLE "edge_users" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"source" uuid,
"target" uuid,
CONSTRAINT "edge_users_id_unique" UNIQUE("id")
);
--> statement-breakpoint
CREATE TABLE "node_groups" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"name" text DEFAULT '' NOT NULL,
CONSTRAINT "node_groups_id_unique" UNIQUE("id")
);
--> statement-breakpoint
CREATE TABLE "node_pets" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"name" text DEFAULT '' NOT NULL,
CONSTRAINT "node_pets_id_unique" UNIQUE("id")
);
--> statement-breakpoint
CREATE TABLE "node_users" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"name" text DEFAULT '' NOT NULL,
CONSTRAINT "node_users_id_unique" UNIQUE("id")
);