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://frfcflbocgkxgzycevlz.supabase.co",
        supabaseKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZyZmNmbGJvY2dreGd6eWNldmx6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjkyMzQ0NTEsImV4cCI6MjA0NDgxMDQ1MX0.eFxM98dUxzefAz5AwcZV-eWgYTkjuH4xEsuYiDHFX98"
    ){
        install(Auth)
        install(Postgrest){
            propertyConversionMethod = PropertyConversionMethod.SERIAL_NAME
        }
    }

}