Skip to content

Commit

Permalink
feat(schema): update Supabase type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
KannoStanfoot committed Jul 5, 2024
1 parent 85177a4 commit d0d8774
Showing 1 changed file with 56 additions and 20 deletions.
76 changes: 56 additions & 20 deletions apps/web/app/types/generated/supabase.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
export type Json =
| string
| number
| boolean
| null
| { [key: string]: Json | undefined }
| Json[]
export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[]

export type Database = {
graphql_public: {
Expand Down Expand Up @@ -57,6 +51,56 @@ export type Database = {
},
]
}
attendees: {
Row: {
activated_at: string | null
avatar_url: string
created_at: string
display_name: string | null
email: string
id: string
provider: string
receipt_id: string
role: string | null
updated_at: string
user_id: string
}
Insert: {
activated_at?: string | null
avatar_url: string
created_at?: string
display_name?: string | null
email: string
id?: string
provider: string
receipt_id: string
role?: string | null
updated_at?: string
user_id: string
}
Update: {
activated_at?: string | null
avatar_url?: string
created_at?: string
display_name?: string | null
email?: string
id?: string
provider?: string
receipt_id?: string
role?: string | null
updated_at?: string
user_id?: string
}
Relationships: [
{
foreignKeyName: 'attendees_user_id_fkey'
columns: ['user_id']
isOneToOne: false
referencedRelation: 'users'
referencedColumns: ['id']
},
]
}
speakers: {
Row: {
caption_en: string | null
Expand Down Expand Up @@ -570,20 +614,16 @@ export type Tables<
}
? R
: never
: PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] &
PublicSchema['Views'])
? (PublicSchema['Tables'] &
PublicSchema['Views'])[PublicTableNameOrOptions] extends {
: PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views'])
? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
Row: infer R
}
? R
: never
: never

export type TablesInsert<
PublicTableNameOrOptions extends
| keyof PublicSchema['Tables']
| { schema: keyof Database },
PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | { schema: keyof Database },
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
: never = never,
Expand All @@ -602,9 +642,7 @@ export type TablesInsert<
: never

export type TablesUpdate<
PublicTableNameOrOptions extends
| keyof PublicSchema['Tables']
| { schema: keyof Database },
PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | { schema: keyof Database },
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
: never = never,
Expand All @@ -623,9 +661,7 @@ export type TablesUpdate<
: never

export type Enums<
PublicEnumNameOrOptions extends
| keyof PublicSchema['Enums']
| { schema: keyof Database },
PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | { schema: keyof Database },
EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
? keyof Database[PublicEnumNameOrOptions['schema']]['Enums']
: never = never,
Expand Down

0 comments on commit d0d8774

Please sign in to comment.