Update database adapter to work with existing shared database
cgen-94d8dbc08c204cf28de7ddc58f1b3f3d
This commit is contained in:
parent
fdffadc7f0
commit
e0f939c4e5
1 changed files with 10 additions and 23 deletions
|
|
@ -5,32 +5,19 @@ import { supabase } from "./supabase";
|
||||||
import type { Database } from "./database.types";
|
import type { Database } from "./database.types";
|
||||||
import { aethexToast } from "./aethex-toast";
|
import { aethexToast } from "./aethex-toast";
|
||||||
|
|
||||||
// Extended user profile type that matches existing + new schema
|
// Use the existing database user profile type directly
|
||||||
export interface AethexUserProfile {
|
import type { UserProfile } from "./database.types";
|
||||||
id: string;
|
|
||||||
username: string;
|
// Extended type that matches the existing shared database
|
||||||
|
export interface AethexUserProfile extends UserProfile {
|
||||||
email?: string;
|
email?: string;
|
||||||
role: string;
|
username: string | null;
|
||||||
onboarded: boolean;
|
onboarded?: boolean;
|
||||||
bio?: string;
|
role?: string;
|
||||||
skills?: string[];
|
loyalty_points?: number;
|
||||||
avatar_url?: string;
|
|
||||||
banner_url?: string;
|
banner_url?: string;
|
||||||
social_links?: any;
|
social_links?: any;
|
||||||
loyalty_points: number;
|
skills?: string[];
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AethexProject {
|
export interface AethexProject {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue