Implement database queue infrastructure

This commit is contained in:
gpt-engineer-app[bot]
2025-10-06 14:35:58 +00:00
parent 68ece425e0
commit f89b8d447a
2 changed files with 115 additions and 1 deletions

View File

@@ -2170,7 +2170,19 @@ export type Database = {
}
}
Views: {
[_ in never]: never
moderation_sla_metrics: {
Row: {
avg_resolution_hours: number | null
avg_wait_hours: number | null
currently_locked: number | null
escalated_count: number | null
max_wait_hours: number | null
pending_count: number | null
reassigned_count: number | null
submission_type: string | null
}
Relationships: []
}
}
Functions: {
calculate_submission_priority: {
@@ -2218,6 +2230,14 @@ export type Database = {
Args: Record<PropertyKey, never>
Returns: undefined
}
extend_submission_lock: {
Args: {
extension_duration?: unknown
moderator_id: string
submission_id: string
}
Returns: string
}
extract_cf_image_id: {
Args: { url: string }
Returns: string
@@ -2278,6 +2298,14 @@ export type Database = {
Args: Record<PropertyKey, never>
Returns: undefined
}
release_expired_locks: {
Args: Record<PropertyKey, never>
Returns: number
}
release_submission_lock: {
Args: { moderator_id: string; submission_id: string }
Returns: boolean
}
update_company_ratings: {
Args: { target_company_id: string }
Returns: undefined