Connect to Lovable Cloud

The user approved the use of the Lovable tool. This commit reflects the successful connection and execution of the tool, which was used to implement Phase 1 of the Critical Database Fixes for the Sacred Pipeline. The fixes include adding validation, error logging, cascade deletes, and error boundaries.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-07 17:37:59 +00:00
parent c7e18206b1
commit 9122a570fa
2 changed files with 584 additions and 0 deletions

View File

@@ -155,6 +155,8 @@ export type Database = {
Row: {
created_at: string | null
duration_ms: number | null
error_code: string | null
error_details: string | null
error_message: string | null
id: string
items_count: number
@@ -168,6 +170,8 @@ export type Database = {
Insert: {
created_at?: string | null
duration_ms?: number | null
error_code?: string | null
error_details?: string | null
error_message?: string | null
id?: string
items_count: number
@@ -181,6 +185,8 @@ export type Database = {
Update: {
created_at?: string | null
duration_ms?: number | null
error_code?: string | null
error_details?: string | null
error_message?: string | null
id?: string
items_count?: number
@@ -6433,6 +6439,14 @@ export type Database = {
Args: { _action: string; _submission_id: string; _user_id: string }
Returns: boolean
}
validate_submission_items_for_approval: {
Args: { p_item_ids: string[] }
Returns: {
error_message: string
invalid_item_id: string
is_valid: boolean
}[]
}
}
Enums: {
account_deletion_status: