@openpeepshq/core 0.1.32 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accessTokens/helpers.d.ts +2 -2
- package/dist/accessTokens/tokens.js +14 -7
- package/dist/accounts/mutations.d.ts +2 -2
- package/dist/accounts/mutations.js +33 -35
- package/dist/analytics/cache.js +12 -7
- package/dist/analytics/compile.js +16 -10
- package/dist/analytics/pdfReport.d.ts +1 -0
- package/dist/analytics/pdfReport.js +5 -4
- package/dist/analytics/privacy.d.ts +18 -0
- package/dist/analytics/privacy.js +10 -0
- package/dist/analytics/read.js +75 -19
- package/dist/analytics/report.d.ts +21 -1
- package/dist/analytics/report.js +9 -2
- package/dist/backups/index.js +78 -15
- package/dist/backups/metadata.d.ts +8 -2
- package/dist/backups/metadata.js +6 -2
- package/dist/config/defaults/capabilities.js +13 -2
- package/dist/config/defaults/community.js +7 -9
- package/dist/config/defaults/core.d.ts +1 -1
- package/dist/config/defaults/core.js +3 -0
- package/dist/config/defaults/db.d.ts +0 -2
- package/dist/config/defaults/db.js +0 -2
- package/dist/config/index.d.ts +25 -3
- package/dist/config/index.js +7 -1
- package/dist/db/helpers.d.ts +7 -28
- package/dist/db/helpers.js +30 -152
- package/dist/db/index.d.ts +3 -1
- package/dist/db/index.js +5 -0
- package/dist/db/init.js +2 -2
- package/dist/db/migration/importCollections.d.ts +15 -10
- package/dist/db/migration/importCollections.js +121 -155
- package/dist/db/migration/shared.d.ts +2 -37
- package/dist/db/migration/shared.js +2 -59
- package/dist/db/pg/client.js +4 -0
- package/dist/db/pg/collections.d.ts +2 -2
- package/dist/db/pg/collections.js +2 -2
- package/dist/db/pg/filters/edges.d.ts +1 -1
- package/dist/db/pg/filters/edges.js +1 -1
- package/dist/db/pg/filters/posts.d.ts +11 -0
- package/dist/db/pg/filters/posts.js +37 -3
- package/dist/db/pg/filters/profiles.d.ts +1 -0
- package/dist/db/pg/filters/profiles.js +2 -1
- package/dist/db/pg/map/filters.js +37 -2
- package/dist/db/pg/map/mutations.js +13 -8
- package/dist/db/pg/map/registry.d.ts +5 -0
- package/dist/db/pg/map/registry.js +64 -24
- package/dist/db/pg/map/relations.d.ts +1 -1
- package/dist/db/pg/map/relations.js +98 -46
- package/dist/db/pg/migrate.d.ts +22 -0
- package/dist/db/pg/migrate.js +88 -2
- package/dist/db/pg/queries/activity.js +3 -3
- package/dist/db/pg/queries/sorts.d.ts +1 -0
- package/dist/db/pg/queries/sorts.js +4 -0
- package/dist/db/pg/schema/documents.d.ts +422 -41
- package/dist/db/pg/schema/documents.js +43 -9
- package/dist/db/pg/schema/edges.d.ts +117 -7
- package/dist/db/pg/schema/edges.js +4 -2
- package/dist/db/pg/schema/index.d.ts +505 -15
- package/dist/db/pg/sql/0007_shallow_oracle.sql +3 -0
- package/dist/db/pg/sql/0008_group_owner_roles.sql +31 -0
- package/dist/db/pg/sql/0009_event_occurrences.sql +26 -0
- package/dist/db/pg/sql/0010_user_group_membership_roles.sql +16 -0
- package/dist/db/pg/sql/0011_drop_data_migrations.sql +1 -0
- package/dist/db/pg/sql/0012_posts_last_activity_at.sql +5 -0
- package/dist/db/pg/sql/0013_add_blocks_edge.sql +12 -0
- package/dist/db/pg/sql/0014_federation_datamodel.sql +59 -0
- package/dist/db/pg/sql/0015_profile_hashtags.sql +12 -0
- package/dist/db/pg/sql/meta/{0006_snapshot.json → 0015_snapshot.json} +393 -39
- package/dist/db/pg/sql/meta/_journal.json +64 -1
- package/dist/db/replaceOrigin.js +6 -0
- package/dist/db/types.d.ts +0 -4
- package/dist/email/render.js +11 -3
- package/dist/events/index.d.ts +6 -1
- package/dist/events/index.js +55 -33
- package/dist/federation/activities.d.ts +17 -0
- package/dist/federation/activities.js +26 -0
- package/dist/federation/identity.d.ts +16 -0
- package/dist/federation/identity.js +52 -0
- package/dist/federation/index.d.ts +4 -0
- package/dist/federation/index.js +3 -0
- package/dist/federation/profiles.d.ts +3 -0
- package/dist/federation/profiles.js +14 -0
- package/dist/groups/finders.d.ts +3 -2
- package/dist/groups/helpers.d.ts +24 -6
- package/dist/groups/mapping.d.ts +6 -4
- package/dist/groups/mapping.js +2 -2
- package/dist/groups/mutations.js +1 -1
- package/dist/hashtags/finders.d.ts +6 -3
- package/dist/hashtags/finders.js +2 -0
- package/dist/hashtags/helpers.d.ts +8 -0
- package/dist/hashtags/helpers.js +4 -0
- package/dist/hashtags/index.d.ts +2 -0
- package/dist/hashtags/index.js +2 -0
- package/dist/hashtags/mutations.d.ts +3 -0
- package/dist/hashtags/mutations.js +13 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +3 -1
- package/dist/i18n/pluginLocales.d.ts +6 -0
- package/dist/i18n/pluginLocales.js +15 -0
- package/dist/inviteLinks/helpers.d.ts +4 -4
- package/dist/jams/cache.d.ts +1 -1
- package/dist/jams/cache.js +2 -1
- package/dist/jams/export.d.ts +19 -0
- package/dist/jams/export.js +60 -0
- package/dist/jams/finders.d.ts +2 -1
- package/dist/jams/finders.js +18 -7
- package/dist/jams/health.d.ts +8 -0
- package/dist/jams/health.js +46 -0
- package/dist/jams/helpers.d.ts +6 -2
- package/dist/jams/index.d.ts +6 -3
- package/dist/jams/index.js +41 -27
- package/dist/jams/jobs.js +1 -1
- package/dist/jams/livekit.d.ts +93 -10
- package/dist/jams/livekit.js +151 -52
- package/dist/jams/mapping.d.ts +17 -7
- package/dist/jams/mutations.d.ts +3 -1
- package/dist/jams/recording.d.ts +10 -0
- package/dist/jams/recording.js +32 -0
- package/dist/jams/rtmp.d.ts +5 -0
- package/dist/jams/rtmp.js +8 -0
- package/dist/jams/token.d.ts +15 -3
- package/dist/jams/token.js +30 -16
- package/dist/jams/waitingRoom.d.ts +6 -6
- package/dist/jams/waitingRoom.js +24 -23
- package/dist/jobs/index.d.ts +1 -0
- package/dist/jobs/index.js +6 -1
- package/dist/jobs/jobDetail.js +1 -6
- package/dist/media/index.d.ts +1 -1
- package/dist/media/index.js +23 -8
- package/dist/media/processing.js +18 -7
- package/dist/notifications/defaultNotifications/follow/index.js +2 -2
- package/dist/notifications/defaultNotifications/groupMemberJoined/index.js +3 -1
- package/dist/notifications/defaultNotifications/groupMemberLeft/index.js +3 -1
- package/dist/notifications/defaultNotifications/index.js +4 -0
- package/dist/notifications/defaultNotifications/newGroupPost/index.js +12 -6
- package/dist/notifications/defaultNotifications/pollEnded/index.d.ts +19 -0
- package/dist/notifications/defaultNotifications/pollEnded/index.js +39 -0
- package/dist/notifications/defaultNotifications/pollEnded/recipients.d.ts +3 -0
- package/dist/notifications/defaultNotifications/pollEnded/recipients.js +18 -0
- package/dist/notifications/defaultNotifications/rsvp/index.d.ts +6 -1
- package/dist/notifications/defaultNotifications/rsvp/index.js +7 -0
- package/dist/notifications/defaultNotifications/rsvpCanceled/index.d.ts +24 -0
- package/dist/notifications/defaultNotifications/rsvpCanceled/index.js +75 -0
- package/dist/notifications/defaultNotifications/rsvpCanceled/recipients.d.ts +4 -0
- package/dist/notifications/defaultNotifications/rsvpCanceled/recipients.js +11 -0
- package/dist/notifications/helpers.js +6 -2
- package/dist/notifications/jobs.js +3 -1
- package/dist/notifications/mutations.js +4 -0
- package/dist/notifications/push.js +11 -4
- package/dist/plugins/helpers.d.ts +1 -0
- package/dist/plugins/helpers.js +1 -8
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/index.js +78 -5
- package/dist/plugins/install.d.ts +39 -0
- package/dist/plugins/install.js +455 -0
- package/dist/plugins/pluginAuth.d.ts +1 -1
- package/dist/plugins/pluginAuth.js +10 -6
- package/dist/plugins/state.d.ts +4 -0
- package/dist/plugins/state.js +29 -0
- package/dist/posts/activity.d.ts +9 -0
- package/dist/posts/activity.js +35 -0
- package/dist/posts/contextClosure.d.ts +1 -9
- package/dist/posts/contextClosure.js +15 -44
- package/dist/posts/conversationQueries.d.ts +7 -0
- package/dist/posts/conversationQueries.js +76 -2
- package/dist/posts/eventAgenda.d.ts +166 -0
- package/dist/posts/eventAgenda.js +126 -0
- package/dist/posts/eventOccurrenceJobs.d.ts +4 -0
- package/dist/posts/eventOccurrenceJobs.js +28 -0
- package/dist/posts/eventOccurrences.d.ts +10 -0
- package/dist/posts/eventOccurrences.js +61 -0
- package/dist/posts/finders.d.ts +47 -16
- package/dist/posts/finders.js +93 -62
- package/dist/posts/helpers/filters.js +14 -9
- package/dist/posts/helpers/index.d.ts +129 -30
- package/dist/posts/helpers/index.js +66 -33
- package/dist/posts/index.d.ts +7 -1
- package/dist/posts/index.js +7 -1
- package/dist/posts/mapping.d.ts +491 -13
- package/dist/posts/mapping.js +45 -10
- package/dist/posts/mutations.d.ts +441 -4
- package/dist/posts/mutations.js +177 -43
- package/dist/posts/pollEnd.d.ts +3 -0
- package/dist/posts/pollEnd.js +7 -0
- package/dist/posts/pollEndJobs.d.ts +8 -0
- package/dist/posts/pollEndJobs.js +49 -0
- package/dist/posts/replyClosure.d.ts +10 -0
- package/dist/posts/replyClosure.js +43 -0
- package/dist/posts/rsvpConfirmationEmail.js +14 -15
- package/dist/posts/threadPreview.d.ts +8 -0
- package/dist/posts/threadPreview.js +44 -0
- package/dist/posts/unseenCounts.d.ts +2 -0
- package/dist/posts/unseenCounts.js +28 -8
- package/dist/profileSettings/cache.js +22 -5
- package/dist/profileSettings/mapping.d.ts +2 -0
- package/dist/profiles/activityQueries.d.ts +5 -0
- package/dist/profiles/activityQueries.js +85 -0
- package/dist/profiles/activitySummary.d.ts +3 -0
- package/dist/profiles/activitySummary.js +87 -0
- package/dist/profiles/blocks.d.ts +12 -0
- package/dist/profiles/blocks.js +73 -0
- package/dist/profiles/cache.d.ts +4 -1
- package/dist/profiles/cache.js +28 -7
- package/dist/profiles/finders.d.ts +2 -1
- package/dist/profiles/finders.js +8 -3
- package/dist/profiles/helpers.d.ts +7 -5
- package/dist/profiles/index.d.ts +3 -1
- package/dist/profiles/index.js +3 -1
- package/dist/profiles/mapping.d.ts +10 -5
- package/dist/profiles/mapping.js +13 -1
- package/dist/profiles/mutations.d.ts +8 -4
- package/dist/profiles/mutations.js +42 -15
- package/dist/pushSubscriptions/helpers.d.ts +2 -2
- package/dist/pushSubscriptions/mutations.js +13 -1
- package/dist/redis/connection.d.ts +2 -0
- package/dist/redis/connection.js +25 -6
- package/dist/reports/helpers.d.ts +6 -6
- package/dist/roles/index.d.ts +1 -1
- package/dist/roles/index.js +1 -1
- package/dist/roles/mapping.d.ts +1 -0
- package/dist/roles/mutations.js +86 -3
- package/dist/search/mapping.d.ts +1 -1
- package/dist/search/mapping.js +6 -2
- package/dist/server/index.d.ts +19 -1
- package/dist/server/index.js +37 -18
- package/dist/server/stablePublicServerInfo.d.ts +17 -0
- package/dist/server/stablePublicServerInfo.js +37 -0
- package/dist/server/status.d.ts +25 -0
- package/dist/server/status.js +98 -0
- package/dist/stats/finders.d.ts +1 -16131
- package/dist/stats/finders.js +9 -5
- package/dist/stats/mapping.d.ts +21 -1
- package/dist/stats/mapping.js +0 -3
- package/package.json +6 -12
- package/dist/db/arango.d.ts +0 -2
- package/dist/db/arango.js +0 -110
- package/dist/db/migration/autoMigrate.d.ts +0 -2
- package/dist/db/migration/autoMigrate.js +0 -111
- package/dist/db/migration/cli.d.ts +0 -1
- package/dist/db/migration/cli.js +0 -56
- package/dist/db/migration/detect.d.ts +0 -6
- package/dist/db/migration/detect.js +0 -87
- package/dist/db/migration/exportArango.d.ts +0 -4
- package/dist/db/migration/exportArango.js +0 -80
- package/dist/db/migration/importPostgres.d.ts +0 -3
- package/dist/db/migration/importPostgres.js +0 -18
- package/dist/db/migration/transform.d.ts +0 -18
- package/dist/db/migration/transform.js +0 -209
- package/dist/db/migration/validate.d.ts +0 -18
- package/dist/db/migration/validate.js +0 -69
- package/dist/db/pg/sql/meta/0000_snapshot.json +0 -3380
- package/dist/db/pg/sql/meta/0004_snapshot.json +0 -4114
- package/dist/db/pg/sql/meta/0005_snapshot.json +0 -4179
- package/dist/mastodon/index.d.ts +0 -4
- package/dist/mastodon/index.js +0 -51
- package/dist/mastodon/types.d.ts +0 -7579
- package/dist/mastodon/types.js +0 -523
- package/dist/mastodon/typescript.d.ts +0 -1578
- package/dist/mastodon/typescript.js +0 -1
- package/dist/roles/defaults.d.ts +0 -2
- package/dist/roles/defaults.js +0 -94
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
-- Backfill user_groups.roles from pre-roles `capabilities` on membership edges.
|
|
2
|
+
-- Memberships without roles fail private-group canReadPost while unseen SQL
|
|
3
|
+
-- still counts them by edge existence.
|
|
4
|
+
UPDATE "user_groups"
|
|
5
|
+
SET "body" = jsonb_set(
|
|
6
|
+
COALESCE("body", '{}'::jsonb) - 'capabilities',
|
|
7
|
+
'{roles}',
|
|
8
|
+
CASE
|
|
9
|
+
WHEN COALESCE("body"->'capabilities', '[]'::jsonb) ? '*'
|
|
10
|
+
THEN '["owner"]'::jsonb
|
|
11
|
+
ELSE '["member"]'::jsonb
|
|
12
|
+
END
|
|
13
|
+
)
|
|
14
|
+
WHERE COALESCE("body"->'roles', '[]'::jsonb) = '[]'::jsonb
|
|
15
|
+
OR "body"->'roles' IS NULL
|
|
16
|
+
OR jsonb_typeof("body"->'roles') = 'null';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DROP TABLE IF EXISTS "data_migrations";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
ALTER TABLE "posts" ADD COLUMN IF NOT EXISTS "last_activity_at" timestamp with time zone;--> statement-breakpoint
|
|
2
|
+
UPDATE "posts" SET "last_activity_at" = "created_at" WHERE "last_activity_at" IS NULL;--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "posts" ALTER COLUMN "last_activity_at" SET DEFAULT now();--> statement-breakpoint
|
|
4
|
+
ALTER TABLE "posts" ALTER COLUMN "last_activity_at" SET NOT NULL;--> statement-breakpoint
|
|
5
|
+
CREATE INDEX IF NOT EXISTS "posts_last_activity_id_idx" ON "posts" USING btree ("last_activity_at","id");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
CREATE TABLE "blocks" (
|
|
2
|
+
"id" uuid PRIMARY KEY NOT NULL,
|
|
3
|
+
"from_id" text NOT NULL,
|
|
4
|
+
"to_id" text NOT NULL,
|
|
5
|
+
"body" jsonb DEFAULT '{}'::jsonb,
|
|
6
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
7
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
8
|
+
);
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
CREATE INDEX "blocks_from_idx" ON "blocks" USING btree ("from_id");--> statement-breakpoint
|
|
11
|
+
CREATE INDEX "blocks_to_idx" ON "blocks" USING btree ("to_id");--> statement-breakpoint
|
|
12
|
+
CREATE UNIQUE INDEX "blocks_from_to_unique" ON "blocks" USING btree ("from_id","to_id");
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
ALTER TABLE "profiles" ADD COLUMN IF NOT EXISTS "uri" text;
|
|
2
|
+
--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "profiles" ADD COLUMN IF NOT EXISTS "inbox_url" text;
|
|
4
|
+
--> statement-breakpoint
|
|
5
|
+
ALTER TABLE "profiles" ADD COLUMN IF NOT EXISTS "shared_inbox_url" text;
|
|
6
|
+
--> statement-breakpoint
|
|
7
|
+
ALTER TABLE "profiles" ADD COLUMN IF NOT EXISTS "public_key_pem" text;
|
|
8
|
+
--> statement-breakpoint
|
|
9
|
+
ALTER TABLE "profiles" ADD COLUMN IF NOT EXISTS "private_key_pem" text;
|
|
10
|
+
--> statement-breakpoint
|
|
11
|
+
ALTER TABLE "profiles" ADD COLUMN IF NOT EXISTS "key_id" text;
|
|
12
|
+
--> statement-breakpoint
|
|
13
|
+
ALTER TABLE "profiles" ADD COLUMN IF NOT EXISTS "fetched_at" timestamp with time zone;
|
|
14
|
+
--> statement-breakpoint
|
|
15
|
+
CREATE UNIQUE INDEX IF NOT EXISTS "profiles_uri_unique" ON "profiles" USING btree ("uri");
|
|
16
|
+
--> statement-breakpoint
|
|
17
|
+
ALTER TABLE "posts" ADD COLUMN IF NOT EXISTS "uri" text;
|
|
18
|
+
--> statement-breakpoint
|
|
19
|
+
ALTER TABLE "posts" ADD COLUMN IF NOT EXISTS "in_reply_to_uri" text;
|
|
20
|
+
--> statement-breakpoint
|
|
21
|
+
CREATE UNIQUE INDEX IF NOT EXISTS "posts_uri_unique" ON "posts" USING btree ("uri");
|
|
22
|
+
--> statement-breakpoint
|
|
23
|
+
CREATE INDEX IF NOT EXISTS "posts_in_reply_to_uri_idx" ON "posts" USING btree ("in_reply_to_uri");
|
|
24
|
+
--> statement-breakpoint
|
|
25
|
+
CREATE TABLE IF NOT EXISTS "ap_activities" (
|
|
26
|
+
"uri" text PRIMARY KEY NOT NULL,
|
|
27
|
+
"type" text NOT NULL,
|
|
28
|
+
"actor_uri" text NOT NULL,
|
|
29
|
+
"object_uri" text,
|
|
30
|
+
"direction" text NOT NULL,
|
|
31
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
32
|
+
);
|
|
33
|
+
--> statement-breakpoint
|
|
34
|
+
DO $$
|
|
35
|
+
BEGIN
|
|
36
|
+
IF to_regclass('public.reactions') IS NOT NULL THEN
|
|
37
|
+
INSERT INTO "entries" ("id", "from_id", "to_id", "body", "created_at", "updated_at")
|
|
38
|
+
SELECT
|
|
39
|
+
r."id",
|
|
40
|
+
r."from_id",
|
|
41
|
+
r."to_id",
|
|
42
|
+
jsonb_build_object(
|
|
43
|
+
'type', 'reaction',
|
|
44
|
+
'data', CASE
|
|
45
|
+
WHEN COALESCE(r."body", '{}'::jsonb) ? 'reaction'
|
|
46
|
+
THEN COALESCE(r."body", '{}'::jsonb)
|
|
47
|
+
ELSE jsonb_build_object('reaction', '👍')
|
|
48
|
+
END
|
|
49
|
+
),
|
|
50
|
+
r."created_at",
|
|
51
|
+
r."updated_at"
|
|
52
|
+
FROM "reactions" r
|
|
53
|
+
WHERE NOT EXISTS (
|
|
54
|
+
SELECT 1 FROM "entries" e WHERE e."id" = r."id"
|
|
55
|
+
);
|
|
56
|
+
END IF;
|
|
57
|
+
END $$;
|
|
58
|
+
--> statement-breakpoint
|
|
59
|
+
DROP TABLE IF EXISTS "reactions";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
CREATE TABLE "profile_hashtags" (
|
|
2
|
+
"id" uuid PRIMARY KEY NOT NULL,
|
|
3
|
+
"from_id" text NOT NULL,
|
|
4
|
+
"to_id" text NOT NULL,
|
|
5
|
+
"body" jsonb DEFAULT '{}'::jsonb,
|
|
6
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
7
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
8
|
+
);
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
CREATE INDEX "profile_hashtags_from_idx" ON "profile_hashtags" USING btree ("from_id");--> statement-breakpoint
|
|
11
|
+
CREATE INDEX "profile_hashtags_to_idx" ON "profile_hashtags" USING btree ("to_id");--> statement-breakpoint
|
|
12
|
+
CREATE UNIQUE INDEX "profile_hashtags_from_to_unique" ON "profile_hashtags" USING btree ("from_id","to_id");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
3
|
-
"prevId": "
|
|
2
|
+
"id": "dfefc4cf-8580-4232-bcc9-fe7da89adb2e",
|
|
3
|
+
"prevId": "3d4c31b7-52a6-4d1b-8074-351a9d74dd4f",
|
|
4
4
|
"version": "7",
|
|
5
5
|
"dialect": "postgresql",
|
|
6
6
|
"tables": {
|
|
@@ -130,6 +130,56 @@
|
|
|
130
130
|
"checkConstraints": {},
|
|
131
131
|
"isRLSEnabled": false
|
|
132
132
|
},
|
|
133
|
+
"public.ap_activities": {
|
|
134
|
+
"name": "ap_activities",
|
|
135
|
+
"schema": "",
|
|
136
|
+
"columns": {
|
|
137
|
+
"uri": {
|
|
138
|
+
"name": "uri",
|
|
139
|
+
"type": "text",
|
|
140
|
+
"primaryKey": true,
|
|
141
|
+
"notNull": true
|
|
142
|
+
},
|
|
143
|
+
"type": {
|
|
144
|
+
"name": "type",
|
|
145
|
+
"type": "text",
|
|
146
|
+
"primaryKey": false,
|
|
147
|
+
"notNull": true
|
|
148
|
+
},
|
|
149
|
+
"actor_uri": {
|
|
150
|
+
"name": "actor_uri",
|
|
151
|
+
"type": "text",
|
|
152
|
+
"primaryKey": false,
|
|
153
|
+
"notNull": true
|
|
154
|
+
},
|
|
155
|
+
"object_uri": {
|
|
156
|
+
"name": "object_uri",
|
|
157
|
+
"type": "text",
|
|
158
|
+
"primaryKey": false,
|
|
159
|
+
"notNull": false
|
|
160
|
+
},
|
|
161
|
+
"direction": {
|
|
162
|
+
"name": "direction",
|
|
163
|
+
"type": "text",
|
|
164
|
+
"primaryKey": false,
|
|
165
|
+
"notNull": true
|
|
166
|
+
},
|
|
167
|
+
"created_at": {
|
|
168
|
+
"name": "created_at",
|
|
169
|
+
"type": "timestamp with time zone",
|
|
170
|
+
"primaryKey": false,
|
|
171
|
+
"notNull": true,
|
|
172
|
+
"default": "now()"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"indexes": {},
|
|
176
|
+
"foreignKeys": {},
|
|
177
|
+
"compositePrimaryKeys": {},
|
|
178
|
+
"uniqueConstraints": {},
|
|
179
|
+
"policies": {},
|
|
180
|
+
"checkConstraints": {},
|
|
181
|
+
"isRLSEnabled": false
|
|
182
|
+
},
|
|
133
183
|
"public.configs": {
|
|
134
184
|
"name": "configs",
|
|
135
185
|
"schema": "",
|
|
@@ -175,25 +225,115 @@
|
|
|
175
225
|
"checkConstraints": {},
|
|
176
226
|
"isRLSEnabled": false
|
|
177
227
|
},
|
|
178
|
-
"public.
|
|
179
|
-
"name": "
|
|
228
|
+
"public.event_occurrences": {
|
|
229
|
+
"name": "event_occurrences",
|
|
180
230
|
"schema": "",
|
|
181
231
|
"columns": {
|
|
182
232
|
"id": {
|
|
183
233
|
"name": "id",
|
|
184
|
-
"type": "
|
|
234
|
+
"type": "uuid",
|
|
185
235
|
"primaryKey": true,
|
|
186
236
|
"notNull": true
|
|
187
237
|
},
|
|
188
|
-
"
|
|
189
|
-
"name": "
|
|
238
|
+
"post_id": {
|
|
239
|
+
"name": "post_id",
|
|
240
|
+
"type": "uuid",
|
|
241
|
+
"primaryKey": false,
|
|
242
|
+
"notNull": true
|
|
243
|
+
},
|
|
244
|
+
"recurrence_id": {
|
|
245
|
+
"name": "recurrence_id",
|
|
246
|
+
"type": "timestamp with time zone",
|
|
247
|
+
"primaryKey": false,
|
|
248
|
+
"notNull": true
|
|
249
|
+
},
|
|
250
|
+
"start": {
|
|
251
|
+
"name": "start",
|
|
252
|
+
"type": "timestamp with time zone",
|
|
253
|
+
"primaryKey": false,
|
|
254
|
+
"notNull": true
|
|
255
|
+
},
|
|
256
|
+
"end": {
|
|
257
|
+
"name": "end",
|
|
258
|
+
"type": "timestamp with time zone",
|
|
259
|
+
"primaryKey": false,
|
|
260
|
+
"notNull": false
|
|
261
|
+
},
|
|
262
|
+
"cancelled": {
|
|
263
|
+
"name": "cancelled",
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"primaryKey": false,
|
|
266
|
+
"notNull": true,
|
|
267
|
+
"default": false
|
|
268
|
+
},
|
|
269
|
+
"created_at": {
|
|
270
|
+
"name": "created_at",
|
|
271
|
+
"type": "timestamp with time zone",
|
|
272
|
+
"primaryKey": false,
|
|
273
|
+
"notNull": true,
|
|
274
|
+
"default": "now()"
|
|
275
|
+
},
|
|
276
|
+
"updated_at": {
|
|
277
|
+
"name": "updated_at",
|
|
190
278
|
"type": "timestamp with time zone",
|
|
191
279
|
"primaryKey": false,
|
|
192
280
|
"notNull": true,
|
|
193
281
|
"default": "now()"
|
|
194
282
|
}
|
|
195
283
|
},
|
|
196
|
-
"indexes": {
|
|
284
|
+
"indexes": {
|
|
285
|
+
"event_occurrences_post_recurrence": {
|
|
286
|
+
"name": "event_occurrences_post_recurrence",
|
|
287
|
+
"columns": [
|
|
288
|
+
{
|
|
289
|
+
"expression": "post_id",
|
|
290
|
+
"isExpression": false,
|
|
291
|
+
"asc": true,
|
|
292
|
+
"nulls": "last"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"expression": "recurrence_id",
|
|
296
|
+
"isExpression": false,
|
|
297
|
+
"asc": true,
|
|
298
|
+
"nulls": "last"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"isUnique": true,
|
|
302
|
+
"concurrently": false,
|
|
303
|
+
"method": "btree",
|
|
304
|
+
"with": {}
|
|
305
|
+
},
|
|
306
|
+
"event_occurrences_start_idx": {
|
|
307
|
+
"name": "event_occurrences_start_idx",
|
|
308
|
+
"columns": [
|
|
309
|
+
{
|
|
310
|
+
"expression": "start",
|
|
311
|
+
"isExpression": false,
|
|
312
|
+
"asc": true,
|
|
313
|
+
"nulls": "last"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"isUnique": false,
|
|
317
|
+
"concurrently": false,
|
|
318
|
+
"method": "btree",
|
|
319
|
+
"with": {}
|
|
320
|
+
},
|
|
321
|
+
"event_occurrences_post_idx": {
|
|
322
|
+
"name": "event_occurrences_post_idx",
|
|
323
|
+
"columns": [
|
|
324
|
+
{
|
|
325
|
+
"expression": "post_id",
|
|
326
|
+
"isExpression": false,
|
|
327
|
+
"asc": true,
|
|
328
|
+
"nulls": "last"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"isUnique": false,
|
|
332
|
+
"concurrently": false,
|
|
333
|
+
"method": "btree",
|
|
334
|
+
"with": {}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
197
337
|
"foreignKeys": {},
|
|
198
338
|
"compositePrimaryKeys": {},
|
|
199
339
|
"uniqueConstraints": {},
|
|
@@ -708,6 +848,18 @@
|
|
|
708
848
|
"primaryKey": false,
|
|
709
849
|
"notNull": true
|
|
710
850
|
},
|
|
851
|
+
"uri": {
|
|
852
|
+
"name": "uri",
|
|
853
|
+
"type": "text",
|
|
854
|
+
"primaryKey": false,
|
|
855
|
+
"notNull": false
|
|
856
|
+
},
|
|
857
|
+
"in_reply_to_uri": {
|
|
858
|
+
"name": "in_reply_to_uri",
|
|
859
|
+
"type": "text",
|
|
860
|
+
"primaryKey": false,
|
|
861
|
+
"notNull": false
|
|
862
|
+
},
|
|
711
863
|
"body": {
|
|
712
864
|
"name": "body",
|
|
713
865
|
"type": "jsonb",
|
|
@@ -721,6 +873,13 @@
|
|
|
721
873
|
"primaryKey": false,
|
|
722
874
|
"notNull": false
|
|
723
875
|
},
|
|
876
|
+
"last_activity_at": {
|
|
877
|
+
"name": "last_activity_at",
|
|
878
|
+
"type": "timestamp with time zone",
|
|
879
|
+
"primaryKey": false,
|
|
880
|
+
"notNull": true,
|
|
881
|
+
"default": "now()"
|
|
882
|
+
},
|
|
724
883
|
"created_at": {
|
|
725
884
|
"name": "created_at",
|
|
726
885
|
"type": "timestamp with time zone",
|
|
@@ -788,6 +947,36 @@
|
|
|
788
947
|
"method": "btree",
|
|
789
948
|
"with": {}
|
|
790
949
|
},
|
|
950
|
+
"posts_uri_unique": {
|
|
951
|
+
"name": "posts_uri_unique",
|
|
952
|
+
"columns": [
|
|
953
|
+
{
|
|
954
|
+
"expression": "uri",
|
|
955
|
+
"isExpression": false,
|
|
956
|
+
"asc": true,
|
|
957
|
+
"nulls": "last"
|
|
958
|
+
}
|
|
959
|
+
],
|
|
960
|
+
"isUnique": true,
|
|
961
|
+
"concurrently": false,
|
|
962
|
+
"method": "btree",
|
|
963
|
+
"with": {}
|
|
964
|
+
},
|
|
965
|
+
"posts_in_reply_to_uri_idx": {
|
|
966
|
+
"name": "posts_in_reply_to_uri_idx",
|
|
967
|
+
"columns": [
|
|
968
|
+
{
|
|
969
|
+
"expression": "in_reply_to_uri",
|
|
970
|
+
"isExpression": false,
|
|
971
|
+
"asc": true,
|
|
972
|
+
"nulls": "last"
|
|
973
|
+
}
|
|
974
|
+
],
|
|
975
|
+
"isUnique": false,
|
|
976
|
+
"concurrently": false,
|
|
977
|
+
"method": "btree",
|
|
978
|
+
"with": {}
|
|
979
|
+
},
|
|
791
980
|
"posts_search_vector_idx": {
|
|
792
981
|
"name": "posts_search_vector_idx",
|
|
793
982
|
"columns": [
|
|
@@ -802,6 +991,27 @@
|
|
|
802
991
|
"concurrently": false,
|
|
803
992
|
"method": "gin",
|
|
804
993
|
"with": {}
|
|
994
|
+
},
|
|
995
|
+
"posts_last_activity_id_idx": {
|
|
996
|
+
"name": "posts_last_activity_id_idx",
|
|
997
|
+
"columns": [
|
|
998
|
+
{
|
|
999
|
+
"expression": "last_activity_at",
|
|
1000
|
+
"isExpression": false,
|
|
1001
|
+
"asc": true,
|
|
1002
|
+
"nulls": "last"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"expression": "id",
|
|
1006
|
+
"isExpression": false,
|
|
1007
|
+
"asc": true,
|
|
1008
|
+
"nulls": "last"
|
|
1009
|
+
}
|
|
1010
|
+
],
|
|
1011
|
+
"isUnique": false,
|
|
1012
|
+
"concurrently": false,
|
|
1013
|
+
"method": "btree",
|
|
1014
|
+
"with": {}
|
|
805
1015
|
}
|
|
806
1016
|
},
|
|
807
1017
|
"foreignKeys": {},
|
|
@@ -1002,6 +1212,48 @@
|
|
|
1002
1212
|
"primaryKey": false,
|
|
1003
1213
|
"notNull": true
|
|
1004
1214
|
},
|
|
1215
|
+
"uri": {
|
|
1216
|
+
"name": "uri",
|
|
1217
|
+
"type": "text",
|
|
1218
|
+
"primaryKey": false,
|
|
1219
|
+
"notNull": false
|
|
1220
|
+
},
|
|
1221
|
+
"inbox_url": {
|
|
1222
|
+
"name": "inbox_url",
|
|
1223
|
+
"type": "text",
|
|
1224
|
+
"primaryKey": false,
|
|
1225
|
+
"notNull": false
|
|
1226
|
+
},
|
|
1227
|
+
"shared_inbox_url": {
|
|
1228
|
+
"name": "shared_inbox_url",
|
|
1229
|
+
"type": "text",
|
|
1230
|
+
"primaryKey": false,
|
|
1231
|
+
"notNull": false
|
|
1232
|
+
},
|
|
1233
|
+
"public_key_pem": {
|
|
1234
|
+
"name": "public_key_pem",
|
|
1235
|
+
"type": "text",
|
|
1236
|
+
"primaryKey": false,
|
|
1237
|
+
"notNull": false
|
|
1238
|
+
},
|
|
1239
|
+
"private_key_pem": {
|
|
1240
|
+
"name": "private_key_pem",
|
|
1241
|
+
"type": "text",
|
|
1242
|
+
"primaryKey": false,
|
|
1243
|
+
"notNull": false
|
|
1244
|
+
},
|
|
1245
|
+
"key_id": {
|
|
1246
|
+
"name": "key_id",
|
|
1247
|
+
"type": "text",
|
|
1248
|
+
"primaryKey": false,
|
|
1249
|
+
"notNull": false
|
|
1250
|
+
},
|
|
1251
|
+
"fetched_at": {
|
|
1252
|
+
"name": "fetched_at",
|
|
1253
|
+
"type": "timestamp with time zone",
|
|
1254
|
+
"primaryKey": false,
|
|
1255
|
+
"notNull": false
|
|
1256
|
+
},
|
|
1005
1257
|
"body": {
|
|
1006
1258
|
"name": "body",
|
|
1007
1259
|
"type": "jsonb",
|
|
@@ -1058,6 +1310,21 @@
|
|
|
1058
1310
|
"method": "btree",
|
|
1059
1311
|
"with": {}
|
|
1060
1312
|
},
|
|
1313
|
+
"profiles_uri_unique": {
|
|
1314
|
+
"name": "profiles_uri_unique",
|
|
1315
|
+
"columns": [
|
|
1316
|
+
{
|
|
1317
|
+
"expression": "uri",
|
|
1318
|
+
"isExpression": false,
|
|
1319
|
+
"asc": true,
|
|
1320
|
+
"nulls": "last"
|
|
1321
|
+
}
|
|
1322
|
+
],
|
|
1323
|
+
"isUnique": true,
|
|
1324
|
+
"concurrently": false,
|
|
1325
|
+
"method": "btree",
|
|
1326
|
+
"with": {}
|
|
1327
|
+
},
|
|
1061
1328
|
"profiles_search_vector_idx": {
|
|
1062
1329
|
"name": "profiles_search_vector_idx",
|
|
1063
1330
|
"columns": [
|
|
@@ -1414,6 +1681,110 @@
|
|
|
1414
1681
|
"checkConstraints": {},
|
|
1415
1682
|
"isRLSEnabled": false
|
|
1416
1683
|
},
|
|
1684
|
+
"public.blocks": {
|
|
1685
|
+
"name": "blocks",
|
|
1686
|
+
"schema": "",
|
|
1687
|
+
"columns": {
|
|
1688
|
+
"id": {
|
|
1689
|
+
"name": "id",
|
|
1690
|
+
"type": "uuid",
|
|
1691
|
+
"primaryKey": true,
|
|
1692
|
+
"notNull": true
|
|
1693
|
+
},
|
|
1694
|
+
"from_id": {
|
|
1695
|
+
"name": "from_id",
|
|
1696
|
+
"type": "text",
|
|
1697
|
+
"primaryKey": false,
|
|
1698
|
+
"notNull": true
|
|
1699
|
+
},
|
|
1700
|
+
"to_id": {
|
|
1701
|
+
"name": "to_id",
|
|
1702
|
+
"type": "text",
|
|
1703
|
+
"primaryKey": false,
|
|
1704
|
+
"notNull": true
|
|
1705
|
+
},
|
|
1706
|
+
"body": {
|
|
1707
|
+
"name": "body",
|
|
1708
|
+
"type": "jsonb",
|
|
1709
|
+
"primaryKey": false,
|
|
1710
|
+
"notNull": false,
|
|
1711
|
+
"default": "'{}'::jsonb"
|
|
1712
|
+
},
|
|
1713
|
+
"created_at": {
|
|
1714
|
+
"name": "created_at",
|
|
1715
|
+
"type": "timestamp with time zone",
|
|
1716
|
+
"primaryKey": false,
|
|
1717
|
+
"notNull": true,
|
|
1718
|
+
"default": "now()"
|
|
1719
|
+
},
|
|
1720
|
+
"updated_at": {
|
|
1721
|
+
"name": "updated_at",
|
|
1722
|
+
"type": "timestamp with time zone",
|
|
1723
|
+
"primaryKey": false,
|
|
1724
|
+
"notNull": true,
|
|
1725
|
+
"default": "now()"
|
|
1726
|
+
}
|
|
1727
|
+
},
|
|
1728
|
+
"indexes": {
|
|
1729
|
+
"blocks_from_idx": {
|
|
1730
|
+
"name": "blocks_from_idx",
|
|
1731
|
+
"columns": [
|
|
1732
|
+
{
|
|
1733
|
+
"expression": "from_id",
|
|
1734
|
+
"isExpression": false,
|
|
1735
|
+
"asc": true,
|
|
1736
|
+
"nulls": "last"
|
|
1737
|
+
}
|
|
1738
|
+
],
|
|
1739
|
+
"isUnique": false,
|
|
1740
|
+
"concurrently": false,
|
|
1741
|
+
"method": "btree",
|
|
1742
|
+
"with": {}
|
|
1743
|
+
},
|
|
1744
|
+
"blocks_to_idx": {
|
|
1745
|
+
"name": "blocks_to_idx",
|
|
1746
|
+
"columns": [
|
|
1747
|
+
{
|
|
1748
|
+
"expression": "to_id",
|
|
1749
|
+
"isExpression": false,
|
|
1750
|
+
"asc": true,
|
|
1751
|
+
"nulls": "last"
|
|
1752
|
+
}
|
|
1753
|
+
],
|
|
1754
|
+
"isUnique": false,
|
|
1755
|
+
"concurrently": false,
|
|
1756
|
+
"method": "btree",
|
|
1757
|
+
"with": {}
|
|
1758
|
+
},
|
|
1759
|
+
"blocks_from_to_unique": {
|
|
1760
|
+
"name": "blocks_from_to_unique",
|
|
1761
|
+
"columns": [
|
|
1762
|
+
{
|
|
1763
|
+
"expression": "from_id",
|
|
1764
|
+
"isExpression": false,
|
|
1765
|
+
"asc": true,
|
|
1766
|
+
"nulls": "last"
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"expression": "to_id",
|
|
1770
|
+
"isExpression": false,
|
|
1771
|
+
"asc": true,
|
|
1772
|
+
"nulls": "last"
|
|
1773
|
+
}
|
|
1774
|
+
],
|
|
1775
|
+
"isUnique": true,
|
|
1776
|
+
"concurrently": false,
|
|
1777
|
+
"method": "btree",
|
|
1778
|
+
"with": {}
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
"foreignKeys": {},
|
|
1782
|
+
"compositePrimaryKeys": {},
|
|
1783
|
+
"uniqueConstraints": {},
|
|
1784
|
+
"policies": {},
|
|
1785
|
+
"checkConstraints": {},
|
|
1786
|
+
"isRLSEnabled": false
|
|
1787
|
+
},
|
|
1417
1788
|
"public.bookmarks": {
|
|
1418
1789
|
"name": "bookmarks",
|
|
1419
1790
|
"schema": "",
|
|
@@ -2837,27 +3208,6 @@
|
|
|
2837
3208
|
"concurrently": false,
|
|
2838
3209
|
"method": "btree",
|
|
2839
3210
|
"with": {}
|
|
2840
|
-
},
|
|
2841
|
-
"post_seen_from_to_unique": {
|
|
2842
|
-
"name": "post_seen_from_to_unique",
|
|
2843
|
-
"columns": [
|
|
2844
|
-
{
|
|
2845
|
-
"expression": "from_id",
|
|
2846
|
-
"isExpression": false,
|
|
2847
|
-
"asc": true,
|
|
2848
|
-
"nulls": "last"
|
|
2849
|
-
},
|
|
2850
|
-
{
|
|
2851
|
-
"expression": "to_id",
|
|
2852
|
-
"isExpression": false,
|
|
2853
|
-
"asc": true,
|
|
2854
|
-
"nulls": "last"
|
|
2855
|
-
}
|
|
2856
|
-
],
|
|
2857
|
-
"isUnique": true,
|
|
2858
|
-
"concurrently": false,
|
|
2859
|
-
"method": "btree",
|
|
2860
|
-
"with": {}
|
|
2861
3211
|
}
|
|
2862
3212
|
},
|
|
2863
3213
|
"foreignKeys": {},
|
|
@@ -2971,8 +3321,8 @@
|
|
|
2971
3321
|
"checkConstraints": {},
|
|
2972
3322
|
"isRLSEnabled": false
|
|
2973
3323
|
},
|
|
2974
|
-
"public.
|
|
2975
|
-
"name": "
|
|
3324
|
+
"public.profile_hashtags": {
|
|
3325
|
+
"name": "profile_hashtags",
|
|
2976
3326
|
"schema": "",
|
|
2977
3327
|
"columns": {
|
|
2978
3328
|
"id": {
|
|
@@ -3016,8 +3366,8 @@
|
|
|
3016
3366
|
}
|
|
3017
3367
|
},
|
|
3018
3368
|
"indexes": {
|
|
3019
|
-
"
|
|
3020
|
-
"name": "
|
|
3369
|
+
"profile_hashtags_from_idx": {
|
|
3370
|
+
"name": "profile_hashtags_from_idx",
|
|
3021
3371
|
"columns": [
|
|
3022
3372
|
{
|
|
3023
3373
|
"expression": "from_id",
|
|
@@ -3031,8 +3381,8 @@
|
|
|
3031
3381
|
"method": "btree",
|
|
3032
3382
|
"with": {}
|
|
3033
3383
|
},
|
|
3034
|
-
"
|
|
3035
|
-
"name": "
|
|
3384
|
+
"profile_hashtags_to_idx": {
|
|
3385
|
+
"name": "profile_hashtags_to_idx",
|
|
3036
3386
|
"columns": [
|
|
3037
3387
|
{
|
|
3038
3388
|
"expression": "to_id",
|
|
@@ -3046,8 +3396,8 @@
|
|
|
3046
3396
|
"method": "btree",
|
|
3047
3397
|
"with": {}
|
|
3048
3398
|
},
|
|
3049
|
-
"
|
|
3050
|
-
"name": "
|
|
3399
|
+
"profile_hashtags_from_to_unique": {
|
|
3400
|
+
"name": "profile_hashtags_from_to_unique",
|
|
3051
3401
|
"columns": [
|
|
3052
3402
|
{
|
|
3053
3403
|
"expression": "from_id",
|
|
@@ -3703,7 +4053,11 @@
|
|
|
3703
4053
|
"compositePrimaryKeys": {
|
|
3704
4054
|
"analytics_daily_clicks_day_kind_target_pk": {
|
|
3705
4055
|
"name": "analytics_daily_clicks_day_kind_target_pk",
|
|
3706
|
-
"columns": [
|
|
4056
|
+
"columns": [
|
|
4057
|
+
"day",
|
|
4058
|
+
"kind",
|
|
4059
|
+
"target"
|
|
4060
|
+
]
|
|
3707
4061
|
}
|
|
3708
4062
|
},
|
|
3709
4063
|
"uniqueConstraints": {},
|
|
@@ -4197,4 +4551,4 @@
|
|
|
4197
4551
|
"schemas": {},
|
|
4198
4552
|
"tables": {}
|
|
4199
4553
|
}
|
|
4200
|
-
}
|
|
4554
|
+
}
|