Files
t5de-hub/packages/db/drizzle/0006_decorations.sql
T
dhkatzandClaude Opus 5.5 f65f36c1ea
CI / test (push) Successful in 1m13s
Decorations over IMVU rooms: the hub's side
T5 products placed in ordinary IMVU rooms, kept per room instance
(room_decoration, migration 0006). GET /api/v1/decorations/:instance (and
?instances= for up to 20) gives what the viewer may see, with a hash;
PUT is for the room owner's T5DE person only, checks the products exist,
and tells every realtime session with a chat in that room ({"type":
"decor"}). Hosted rooms' IDs are refused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 03:58:42 -07:00

8 lines
315 B
SQL

CREATE TABLE "room_decoration" (
"instance_id" text PRIMARY KEY NOT NULL,
"owner_imvu_id" bigint NOT NULL,
"contents" jsonb NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE INDEX "room_decoration_owner" ON "room_decoration" USING btree ("owner_imvu_id");