feat: attribute files and downloads to actors (#559)

* feat: attribute files and downloads to actors

* chore: refresh preview after staging migration

* fix: use a dash for missing actor identity

* fix: complete actor attribution and file creator UI

* fix: refine file creator identity UI
This commit is contained in:
Jasper Van
2026-08-08 11:04:16 -04:00
committed by GitHub
parent 1b7d8d55f5
commit fa19323eda
68 changed files with 7978 additions and 196 deletions
+6
View File
@@ -18,6 +18,9 @@ export const matters = sqliteTable(
status: text('status').notNull().default('draft'), // draft, active
trashedAt: integer('trashed_at'), // null = live, epoch ms = in trash (soft delete)
purgedAt: integer('purged_at'), // null = retained/billable, epoch ms = content permanently removed
createdByActorType: text('created_by_actor_type'),
createdByActorRef: text('created_by_actor_ref'),
createdByActorIssuer: text('created_by_actor_issuer'),
createdAt: integer('created_at', { mode: 'timestamp' }).notNull(),
updatedAt: integer('updated_at', { mode: 'timestamp' }).notNull(),
},
@@ -412,6 +415,9 @@ export const downloadTasks = sqliteTable(
id: text('id').primaryKey(),
orgId: text('org_id').notNull(),
createdByUserId: text('created_by_user_id').notNull(),
requestedByActorType: text('requested_by_actor_type'),
requestedByActorRef: text('requested_by_actor_ref'),
requestedByActorIssuer: text('requested_by_actor_issuer'),
sourceType: text('source_type').notNull(),
sourceUri: text('source_uri').notNull(),
displayName: text('display_name'),