diff --git a/bbb-graphql-server/bbb_schema.sql b/bbb-graphql-server/bbb_schema.sql index ab2da6a7a1..6d8360a18e 100644 --- a/bbb-graphql-server/bbb_schema.sql +++ b/bbb-graphql-server/bbb_schema.sql @@ -1500,6 +1500,11 @@ create table "sharedNotes_rev" ( ); --create view "v_sharedNotes_rev" as select * from "sharedNotes_rev"; +create view "v_sharedNotes_diff" as +select "meetingId", "sharedNotesExtId", "userId", "start", "end", "diff" +from "sharedNotes_rev" +where "diff" is not null; + create table "sharedNotes_session" ( "meetingId" varchar(100) references "meeting"("meetingId") ON DELETE CASCADE, "sharedNotesExtId" varchar(25), diff --git a/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_sharedNotes_diff.yaml b/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_sharedNotes_diff.yaml new file mode 100644 index 0000000000..b4d4dc6579 --- /dev/null +++ b/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_sharedNotes_diff.yaml @@ -0,0 +1,22 @@ +table: + name: v_sharedNotes_diff + schema: public +configuration: + column_config: {} + custom_column_names: {} + custom_name: sharedNotes_diff + custom_root_fields: {} +select_permissions: + - role: bbb_client + permission: + columns: + - diff + - end + - rev + - sharedNotesExtId + - start + - userId + filter: + meetingId: + _eq: X-Hasura-MeetingId + comment: "" diff --git a/bbb-graphql-server/metadata/databases/BigBlueButton/tables/tables.yaml b/bbb-graphql-server/metadata/databases/BigBlueButton/tables/tables.yaml index ba77948367..27edd90911 100644 --- a/bbb-graphql-server/metadata/databases/BigBlueButton/tables/tables.yaml +++ b/bbb-graphql-server/metadata/databases/BigBlueButton/tables/tables.yaml @@ -36,6 +36,7 @@ - "!include public_v_pres_presentation_uploadToken.yaml" - "!include public_v_screenshare.yaml" - "!include public_v_sharedNotes.yaml" +- "!include public_v_sharedNotes_diff.yaml" - "!include public_v_sharedNotes_session.yaml" - "!include public_v_timer.yaml" - "!include public_v_user.yaml"