mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 15:31:13 -05:00
Refactor: Complete photo system migration
This commit is contained in:
@@ -537,6 +537,100 @@ export type Database = {
|
||||
},
|
||||
]
|
||||
}
|
||||
photo_submission_items: {
|
||||
Row: {
|
||||
caption: string | null
|
||||
cloudflare_image_id: string
|
||||
cloudflare_image_url: string
|
||||
created_at: string
|
||||
date_taken: string | null
|
||||
file_size: number | null
|
||||
filename: string | null
|
||||
id: string
|
||||
mime_type: string | null
|
||||
order_index: number
|
||||
photo_submission_id: string
|
||||
title: string | null
|
||||
}
|
||||
Insert: {
|
||||
caption?: string | null
|
||||
cloudflare_image_id: string
|
||||
cloudflare_image_url: string
|
||||
created_at?: string
|
||||
date_taken?: string | null
|
||||
file_size?: number | null
|
||||
filename?: string | null
|
||||
id?: string
|
||||
mime_type?: string | null
|
||||
order_index?: number
|
||||
photo_submission_id: string
|
||||
title?: string | null
|
||||
}
|
||||
Update: {
|
||||
caption?: string | null
|
||||
cloudflare_image_id?: string
|
||||
cloudflare_image_url?: string
|
||||
created_at?: string
|
||||
date_taken?: string | null
|
||||
file_size?: number | null
|
||||
filename?: string | null
|
||||
id?: string
|
||||
mime_type?: string | null
|
||||
order_index?: number
|
||||
photo_submission_id?: string
|
||||
title?: string | null
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "photo_submission_items_photo_submission_id_fkey"
|
||||
columns: ["photo_submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "photo_submissions"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
photo_submissions: {
|
||||
Row: {
|
||||
created_at: string
|
||||
entity_id: string
|
||||
entity_type: string
|
||||
id: string
|
||||
parent_id: string | null
|
||||
submission_id: string
|
||||
title: string | null
|
||||
updated_at: string
|
||||
}
|
||||
Insert: {
|
||||
created_at?: string
|
||||
entity_id: string
|
||||
entity_type: string
|
||||
id?: string
|
||||
parent_id?: string | null
|
||||
submission_id: string
|
||||
title?: string | null
|
||||
updated_at?: string
|
||||
}
|
||||
Update: {
|
||||
created_at?: string
|
||||
entity_id?: string
|
||||
entity_type?: string
|
||||
id?: string
|
||||
parent_id?: string | null
|
||||
submission_id?: string
|
||||
title?: string | null
|
||||
updated_at?: string
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "photo_submissions_submission_id_fkey"
|
||||
columns: ["submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "content_submissions"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
photos: {
|
||||
Row: {
|
||||
approved_at: string | null
|
||||
@@ -738,6 +832,44 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
review_photos: {
|
||||
Row: {
|
||||
caption: string | null
|
||||
cloudflare_image_id: string
|
||||
cloudflare_image_url: string
|
||||
created_at: string
|
||||
id: string
|
||||
order_index: number
|
||||
review_id: string
|
||||
}
|
||||
Insert: {
|
||||
caption?: string | null
|
||||
cloudflare_image_id: string
|
||||
cloudflare_image_url: string
|
||||
created_at?: string
|
||||
id?: string
|
||||
order_index?: number
|
||||
review_id: string
|
||||
}
|
||||
Update: {
|
||||
caption?: string | null
|
||||
cloudflare_image_id?: string
|
||||
cloudflare_image_url?: string
|
||||
created_at?: string
|
||||
id?: string
|
||||
order_index?: number
|
||||
review_id?: string
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "review_photos_review_id_fkey"
|
||||
columns: ["review_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "reviews"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
reviews: {
|
||||
Row: {
|
||||
content: string | null
|
||||
@@ -1346,6 +1478,10 @@ export type Database = {
|
||||
Args: { _user_id: string }
|
||||
Returns: boolean
|
||||
}
|
||||
extract_cf_image_id: {
|
||||
Args: { url: string }
|
||||
Returns: string
|
||||
}
|
||||
get_filtered_profile: {
|
||||
Args: { _profile_user_id: string; _viewer_id?: string }
|
||||
Returns: Json
|
||||
|
||||
Reference in New Issue
Block a user