Update database adapter to work with existing shared database

cgen-94d8dbc08c204cf28de7ddc58f1b3f3d
This commit is contained in:
Builder.io 2025-08-17 00:13:42 +00:00
parent fdffadc7f0
commit e0f939c4e5

View file

@ -5,32 +5,19 @@ import { supabase } from "./supabase";
import type { Database } from "./database.types";
import { aethexToast } from "./aethex-toast";
// Extended user profile type that matches existing + new schema
export interface AethexUserProfile {
id: string;
username: string;
// Use the existing database user profile type directly
import type { UserProfile } from "./database.types";
// Extended type that matches the existing shared database
export interface AethexUserProfile extends UserProfile {
email?: string;
role: string;
onboarded: boolean;
bio?: string;
skills?: string[];
avatar_url?: string;
username: string | null;
onboarded?: boolean;
role?: string;
loyalty_points?: number;
banner_url?: string;
social_links?: any;
loyalty_points: number;
created_at: string;
updated_at: string;
// New AeThex app fields
user_type?: "game_developer" | "client" | "community_member" | "customer";
experience_level?: "beginner" | "intermediate" | "advanced" | "expert";
full_name?: string;
location?: string;
website_url?: string;
github_url?: string;
twitter_url?: string;
linkedin_url?: string;
total_xp?: number;
level?: number;
skills?: string[];
}
export interface AethexProject {