Fix notification logs migration

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 00:24:38 +00:00
parent 71bb364bce
commit a3b52b777c
2 changed files with 142 additions and 0 deletions

View File

@@ -1316,6 +1316,33 @@ export type Database = {
}
Relationships: []
}
notification_duplicate_stats: {
Row: {
created_at: string | null
date: string
duplicates_prevented: number | null
id: string
prevention_rate: number | null
total_attempts: number | null
}
Insert: {
created_at?: string | null
date?: string
duplicates_prevented?: number | null
id?: string
prevention_rate?: number | null
total_attempts?: number | null
}
Update: {
created_at?: string | null
date?: string
duplicates_prevented?: number | null
id?: string
prevention_rate?: number | null
total_attempts?: number | null
}
Relationships: []
}
notification_logs: {
Row: {
channel: string
@@ -1323,6 +1350,8 @@ export type Database = {
delivered_at: string | null
error_message: string | null
id: string
idempotency_key: string | null
is_duplicate: boolean
novu_transaction_id: string | null
payload: Json | null
read_at: string | null
@@ -1336,6 +1365,8 @@ export type Database = {
delivered_at?: string | null
error_message?: string | null
id?: string
idempotency_key?: string | null
is_duplicate?: boolean
novu_transaction_id?: string | null
payload?: Json | null
read_at?: string | null
@@ -1349,6 +1380,8 @@ export type Database = {
delivered_at?: string | null
error_message?: string | null
id?: string
idempotency_key?: string | null
is_duplicate?: boolean
novu_transaction_id?: string | null
payload?: Json | null
read_at?: string | null
@@ -4614,6 +4647,16 @@ export type Database = {
}
Relationships: []
}
notification_health_dashboard: {
Row: {
date: string | null
duplicates_prevented: number | null
health_status: string | null
prevention_rate: number | null
total_attempts: number | null
}
Relationships: []
}
}
Functions: {
anonymize_user_submissions: {
@@ -4692,6 +4735,15 @@ export type Database = {
}
extract_cf_image_id: { Args: { url: string }; Returns: string }
generate_deletion_confirmation_code: { Args: never; Returns: string }
generate_notification_idempotency_key: {
Args: {
p_entity_id: string
p_event_data?: Json
p_notification_type: string
p_recipient_id: string
}
Returns: string
}
generate_ticket_number: { Args: never; Returns: string }
get_auth0_sub_from_jwt: { Args: never; Returns: string }
get_current_user_id: { Args: never; Returns: string }
@@ -4775,6 +4827,7 @@ export type Database = {
}
hash_ip_address: { Args: { ip_text: string }; Returns: string }
hash_session_ip: { Args: { session_ip: unknown }; Returns: string }
immutable_date: { Args: { ts: string }; Returns: string }
increment_blog_view_count: {
Args: { post_slug: string }
Returns: undefined