Skip to content

Commit a391280

Browse files
pyphiliakim
andauthored
feat: create page endpoint (#1947)
* feat: create page endpoint * refactor: fix typo * refactor: update sdk version --------- Co-authored-by: kim <kim.phanhoang@epfl.ch>
1 parent 7afe44d commit a391280

15 files changed

Lines changed: 4161 additions & 532 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@fastify/type-provider-typebox": "5.1.0",
6767
"@fastify/websocket": "11.0.2",
6868
"@graasp/etherpad-api": "2.1.1",
69-
"@graasp/sdk": "5.14.0",
69+
"@graasp/sdk": "5.15.0",
7070
"@graasp/translations": "1.44.0",
7171
"@rapideditor/country-coder": "5.4.0",
7272
"@sentry/node": "7.119.2",

src/drizzle/0009_page.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CREATE TABLE "page" (
2+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
3+
"item_id" uuid NOT NULL,
4+
"content" jsonb DEFAULT '{}' NOT NULL,
5+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
6+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
7+
);
8+
--> statement-breakpoint
9+
ALTER TABLE "page" ADD CONSTRAINT "FK_page_item_id" FOREIGN KEY ("item_id") REFERENCES "public"."item"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
10+
CREATE INDEX "IDX_page_item_id" ON "page" USING btree ("item_id" uuid_ops);

0 commit comments

Comments
 (0)