package com.example.tomatoandpotatoapp.data.network

import io.github.jan.supabase.auth.Auth
import io.github.jan.supabase.createSupabaseClient
import io.github.jan.supabase.postgrest.Postgrest
import io.github.jan.supabase.postgrest.PropertyConversionMethod

object TomatAndPotatClient {
    val client = createSupabaseClient(
        supabaseUrl = "https://xjbpbyocknyxsmwdvlue.supabase.co",
        supabaseKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhqYnBieW9ja255eHNtd2R2bHVlIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzE5NDY5MzQsImV4cCI6MjA0NzUyMjkzNH0.HesTDGPfqxlMuRqecMCxCyJHsPKuYBpUfgJh9Nc-_00"
    ){
        install(Auth)
        install(Postgrest){
            propertyConversionMethod = PropertyConversionMethod.SERIAL_NAME
        }
    }

}