package com.example.development.domain.utils

import io.github.jan.supabase.createSupabaseClient
import io.github.jan.supabase.gotrue.Auth
import io.github.jan.supabase.postgrest.Postgrest
import io.github.jan.supabase.postgrest.PropertyConversionMethod
import io.github.jan.supabase.storage.Storage

object Constants {
    val supabase = createSupabaseClient(
        supabaseUrl = "https://brbbhqmlleocjmtutfjc.supabase.co",
        supabaseKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJyYmJocW1sbGVvY2ptdHV0ZmpjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjcyMjYwOTYsImV4cCI6MjA0MjgwMjA5Nn0.u2xSGi6XO0uVteJwy4smydg5uzUKKaWaq2AylCzTqrI"
    ) {
        install(Auth)
        install(Postgrest){
            propertyConversionMethod = PropertyConversionMethod.SERIAL_NAME
        }
        install(Storage)
    }
}