
import os
import psycopg2

def check_enums():
    try:
        db_url = os.environ.get('DATABASE_URL', 'postgresql://suggestbet:SuGGesT2026SecuRe@localhost:15432/boilerplate_db')
        conn = psycopg2.connect(db_url)
        cursor = conn.cursor()
        
        cursor.execute("SELECT DISTINCT status FROM matches")
        statuses = [r[0] for r in cursor.fetchall()]
        print(f"Distict Statuses: {statuses}")
        
        cursor.execute("SELECT DISTINCT sport FROM matches")
        sports = [r[0] for r in cursor.fetchall()]
        print(f"Distinct Sports: {sports}")
        
    except Exception as e:
        print(e)

if __name__ == "__main__":
    check_enums()
