mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 11:11:13 -05:00
Fix submission_items foreign keys
This commit is contained in:
@@ -765,6 +765,27 @@ export type Database = {
|
||||
referencedRelation: "filtered_profiles"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "contact_submissions_submitter_profile_id_fkey"
|
||||
columns: ["submitter_profile_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "moderation_queue_with_entities"
|
||||
referencedColumns: ["assignee_profile_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "contact_submissions_submitter_profile_id_fkey"
|
||||
columns: ["submitter_profile_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "moderation_queue_with_entities"
|
||||
referencedColumns: ["reviewer_profile_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "contact_submissions_submitter_profile_id_fkey"
|
||||
columns: ["submitter_profile_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "moderation_queue_with_entities"
|
||||
referencedColumns: ["submitter_profile_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "contact_submissions_submitter_profile_id_fkey"
|
||||
columns: ["submitter_profile_id"]
|
||||
@@ -4660,49 +4681,71 @@ export type Database = {
|
||||
Row: {
|
||||
action_type: string | null
|
||||
approved_entity_id: string | null
|
||||
company_submission_id: string | null
|
||||
created_at: string
|
||||
depends_on: string | null
|
||||
id: string
|
||||
is_test_data: boolean | null
|
||||
item_data_id: string | null
|
||||
item_type: string
|
||||
order_index: number | null
|
||||
park_submission_id: string | null
|
||||
photo_submission_id: string | null
|
||||
rejection_reason: string | null
|
||||
ride_model_submission_id: string | null
|
||||
ride_submission_id: string | null
|
||||
status: string
|
||||
submission_id: string
|
||||
timeline_event_submission_id: string | null
|
||||
updated_at: string
|
||||
}
|
||||
Insert: {
|
||||
action_type?: string | null
|
||||
approved_entity_id?: string | null
|
||||
company_submission_id?: string | null
|
||||
created_at?: string
|
||||
depends_on?: string | null
|
||||
id?: string
|
||||
is_test_data?: boolean | null
|
||||
item_data_id?: string | null
|
||||
item_type: string
|
||||
order_index?: number | null
|
||||
park_submission_id?: string | null
|
||||
photo_submission_id?: string | null
|
||||
rejection_reason?: string | null
|
||||
ride_model_submission_id?: string | null
|
||||
ride_submission_id?: string | null
|
||||
status?: string
|
||||
submission_id: string
|
||||
timeline_event_submission_id?: string | null
|
||||
updated_at?: string
|
||||
}
|
||||
Update: {
|
||||
action_type?: string | null
|
||||
approved_entity_id?: string | null
|
||||
company_submission_id?: string | null
|
||||
created_at?: string
|
||||
depends_on?: string | null
|
||||
id?: string
|
||||
is_test_data?: boolean | null
|
||||
item_data_id?: string | null
|
||||
item_type?: string
|
||||
order_index?: number | null
|
||||
park_submission_id?: string | null
|
||||
photo_submission_id?: string | null
|
||||
rejection_reason?: string | null
|
||||
ride_model_submission_id?: string | null
|
||||
ride_submission_id?: string | null
|
||||
status?: string
|
||||
submission_id?: string
|
||||
timeline_event_submission_id?: string | null
|
||||
updated_at?: string
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "submission_items_company_submission_id_fkey"
|
||||
columns: ["company_submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "company_submissions"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "submission_items_depends_on_fkey"
|
||||
columns: ["depends_on"]
|
||||
@@ -4710,6 +4753,34 @@ export type Database = {
|
||||
referencedRelation: "submission_items"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "submission_items_park_submission_id_fkey"
|
||||
columns: ["park_submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "park_submissions"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "submission_items_photo_submission_id_fkey"
|
||||
columns: ["photo_submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "photo_submissions"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "submission_items_ride_model_submission_id_fkey"
|
||||
columns: ["ride_model_submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "ride_model_submissions"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "submission_items_ride_submission_id_fkey"
|
||||
columns: ["ride_submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "ride_submissions"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "submission_items_submission_id_fkey"
|
||||
columns: ["submission_id"]
|
||||
@@ -4724,6 +4795,13 @@ export type Database = {
|
||||
referencedRelation: "moderation_queue_with_entities"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "submission_items_timeline_event_submission_id_fkey"
|
||||
columns: ["timeline_event_submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "timeline_event_submissions"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
submission_metadata: {
|
||||
@@ -5264,26 +5342,43 @@ export type Database = {
|
||||
}
|
||||
moderation_queue_with_entities: {
|
||||
Row: {
|
||||
approval_mode: string | null
|
||||
assigned_at: string | null
|
||||
assigned_profile: Json | null
|
||||
assigned_to: string | null
|
||||
assignee_avatar_url: string | null
|
||||
assignee_display_name: string | null
|
||||
assignee_profile_id: string | null
|
||||
assignee_username: string | null
|
||||
created_at: string | null
|
||||
escalated: boolean | null
|
||||
escalated_at: string | null
|
||||
escalated_by: string | null
|
||||
escalation_reason: string | null
|
||||
first_reviewed_at: string | null
|
||||
id: string | null
|
||||
is_test_data: boolean | null
|
||||
last_modified_at: string | null
|
||||
last_modified_by: string | null
|
||||
locked_until: string | null
|
||||
resolved_at: string | null
|
||||
review_count: number | null
|
||||
review_notes: string | null
|
||||
reviewed_at: string | null
|
||||
reviewed_by: string | null
|
||||
reviewer_notes: string | null
|
||||
reviewer_profile: Json | null
|
||||
reviewer_avatar_url: string | null
|
||||
reviewer_display_name: string | null
|
||||
reviewer_profile_id: string | null
|
||||
reviewer_username: string | null
|
||||
status: string | null
|
||||
submission_items: Json | null
|
||||
submission_type: string | null
|
||||
submitted_at: string | null
|
||||
submitter_id: string | null
|
||||
submitter_profile: Json | null
|
||||
submitted_by: string | null
|
||||
submitter_avatar_url: string | null
|
||||
submitter_display_name: string | null
|
||||
submitter_profile_id: string | null
|
||||
submitter_reputation: number | null
|
||||
submitter_username: string | null
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
@@ -5300,6 +5395,20 @@ export type Database = {
|
||||
referencedRelation: "profiles"
|
||||
referencedColumns: ["user_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "content_submissions_escalated_by_fkey"
|
||||
columns: ["escalated_by"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "filtered_profiles"
|
||||
referencedColumns: ["user_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "content_submissions_escalated_by_fkey"
|
||||
columns: ["escalated_by"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "profiles"
|
||||
referencedColumns: ["user_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "content_submissions_reviewer_id_fkey"
|
||||
columns: ["reviewed_by"]
|
||||
@@ -5316,14 +5425,14 @@ export type Database = {
|
||||
},
|
||||
{
|
||||
foreignKeyName: "content_submissions_user_id_fkey"
|
||||
columns: ["submitter_id"]
|
||||
columns: ["submitted_by"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "filtered_profiles"
|
||||
referencedColumns: ["user_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "content_submissions_user_id_fkey"
|
||||
columns: ["submitter_id"]
|
||||
columns: ["submitted_by"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "profiles"
|
||||
referencedColumns: ["user_id"]
|
||||
|
||||
Reference in New Issue
Block a user