feat(assessment): assign the demonstration category and keep result history

This commit is contained in:
shira committed 2026-10-09 00:35:13 +03:00
1 parent b3c6dc870b
commit 8277133712
61 files changed
+4338 -268

No files matched your search

@@ -184,21 +184,9 @@ func notificationInboxOptionalUUID(value *uuid.UUID) pgtype.UUID {
return pgUUID(*value)
}
func notificationInboxEntryFromRow(row sqlc.GetNotificationInboxEventRow) (domain.NotificationInboxEntry, error) {
return restoreNotificationInboxEntryRow(
row.RecipientUserID, row.EventID, row.OrganizationID, row.EventType,
row.SchemaVersion, row.SourceType, row.SourceID, row.OccurredAt, row.ReadAt,
)
}
func notificationInboxEntryFromListRow(row sqlc.ListNotificationInboxEventsRow) (domain.NotificationInboxEntry, error) {
return restoreNotificationInboxEntryRow(
row.RecipientUserID, row.EventID, row.OrganizationID, row.EventType,
row.SchemaVersion, row.SourceType, row.SourceID, row.OccurredAt, row.ReadAt,
)
}
func notificationInboxEntryFromReadRow(row sqlc.MarkNotificationInboxEventReadRow) (domain.NotificationInboxEntry, error) {
// The three inbox queries select every column of the table in table order, so
// sqlc returns the shared model type for all of them.
func notificationInboxEntryFromRow(row sqlc.NotificationInboxEvent) (domain.NotificationInboxEntry, error) {
return restoreNotificationInboxEntryRow(
row.RecipientUserID, row.EventID, row.OrganizationID, row.EventType,
row.SchemaVersion, row.SourceType, row.SourceID, row.OccurredAt, row.ReadAt,