fix: bug
This commit is contained in:
@@ -23,5 +23,4 @@ export const authClient = createAuthClient({
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
export const { signIn, signUp, signOut, useSession, $Infer, subscription } = authClient;
|
||||
|
||||
@@ -4,6 +4,7 @@ export interface User {
|
||||
email?: string;
|
||||
name?: string;
|
||||
image?: string;
|
||||
balance?: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
@@ -18,6 +19,30 @@ export interface Session {
|
||||
};
|
||||
}
|
||||
|
||||
export interface GenerationRecord {
|
||||
id: string;
|
||||
userId: string;
|
||||
type: 'image' | 'video' | 'text';
|
||||
title: string;
|
||||
description?: string;
|
||||
thumbnail?: string;
|
||||
mediaUrl?: string;
|
||||
status: 'pending' | 'completed' | 'failed';
|
||||
cost: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
export interface BalanceTransaction {
|
||||
id: string;
|
||||
userId: string;
|
||||
type: 'recharge' | 'consumption' | 'refund';
|
||||
amount: number;
|
||||
description: string;
|
||||
relatedRecordId?: string;
|
||||
createdAt: Date;
|
||||
}
|
||||
|
||||
export interface AuthError {
|
||||
message: string;
|
||||
code?: string;
|
||||
|
||||
Reference in New Issue
Block a user