Apply Supabase migration

This commit is contained in:
gpt-engineer-app[bot]
2025-10-14 19:18:26 +00:00
parent 3833ba9748
commit fd17234b67
2 changed files with 418 additions and 3 deletions

View File

@@ -1384,6 +1384,39 @@ export type Database = {
}
Relationships: []
}
profile_audit_log: {
Row: {
action: string
changed_by: string
changes: Json
created_at: string
id: string
ip_address_hash: string | null
user_agent: string | null
user_id: string
}
Insert: {
action: string
changed_by: string
changes: Json
created_at?: string
id?: string
ip_address_hash?: string | null
user_agent?: string | null
user_id: string
}
Update: {
action?: string
changed_by?: string
changes?: Json
created_at?: string
id?: string
ip_address_hash?: string | null
user_agent?: string | null
user_id?: string
}
Relationships: []
}
profiles: {
Row: {
avatar_image_id: string | null
@@ -1495,6 +1528,33 @@ export type Database = {
},
]
}
rate_limits: {
Row: {
action: string
attempts: number
created_at: string
id: string
user_id: string
window_start: string
}
Insert: {
action: string
attempts?: number
created_at?: string
id?: string
user_id: string
window_start?: string
}
Update: {
action?: string
attempts?: number
created_at?: string
id?: string
user_id?: string
window_start?: string
}
Relationships: []
}
reports: {
Row: {
created_at: string
@@ -2561,6 +2621,7 @@ export type Database = {
user_preferences: {
Row: {
accessibility_options: Json
auto_save_enabled: boolean | null
created_at: string
email_notifications: Json
id: string
@@ -2572,6 +2633,7 @@ export type Database = {
}
Insert: {
accessibility_options?: Json
auto_save_enabled?: boolean | null
created_at?: string
email_notifications?: Json
id?: string
@@ -2583,6 +2645,7 @@ export type Database = {
}
Update: {
accessibility_options?: Json
auto_save_enabled?: boolean | null
created_at?: string
email_notifications?: Json
id?: string
@@ -2901,6 +2964,14 @@ export type Database = {
Args: { _user_id: string }
Returns: boolean
}
check_rate_limit: {
Args: {
p_action: string
p_max_attempts: number
p_window_minutes: number
}
Returns: Json
}
check_realtime_access: {
Args: Record<PropertyKey, never>
Returns: boolean
@@ -2921,6 +2992,10 @@ export type Database = {
Args: Record<PropertyKey, never>
Returns: undefined
}
cleanup_rate_limits: {
Args: Record<PropertyKey, never>
Returns: undefined
}
compare_versions: {
Args: { p_from_version_id: string; p_to_version_id: string }
Returns: Json
@@ -2957,6 +3032,10 @@ export type Database = {
Args: Record<PropertyKey, never>
Returns: string
}
get_email_change_status: {
Args: Record<PropertyKey, never>
Returns: Json
}
get_filtered_profile: {
Args: { _profile_user_id: string; _viewer_id?: string }
Returns: Json
@@ -3087,10 +3166,8 @@ export type Database = {
p_bio?: string
p_display_name?: string
p_personal_location?: string
p_preferred_language?: string
p_preferred_pronouns?: string
p_show_pronouns?: boolean
p_username: string
p_username?: string
}
Returns: Json
}