16 lines
562 B
SQL
16 lines
562 B
SQL
CREATE TABLE IF NOT EXISTS "mission_registry" (
|
|
"id" text PRIMARY KEY NOT NULL,
|
|
"version" text NOT NULL,
|
|
"title" text NOT NULL,
|
|
"short_title" text NOT NULL,
|
|
"actor_type" text,
|
|
"actor_backed" boolean DEFAULT false NOT NULL,
|
|
"skill_path" text NOT NULL,
|
|
"display_order" integer NOT NULL,
|
|
"definition" jsonb NOT NULL,
|
|
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS "mission_registry_display_idx" ON "mission_registry" ("display_order");
|