change db types
This commit is contained in:
parent
28cf5288ab
commit
b6cf3bae96
@ -63,21 +63,21 @@ export type Database = {
|
||||
Row: {
|
||||
agent_id: number;
|
||||
created_at: string;
|
||||
id: string;
|
||||
id: number;
|
||||
question: string;
|
||||
response: string;
|
||||
};
|
||||
Insert: {
|
||||
agent_id: number;
|
||||
created_at?: string;
|
||||
id?: string;
|
||||
id?: number;
|
||||
question: string;
|
||||
response: string;
|
||||
};
|
||||
Update: {
|
||||
agent_id?: number;
|
||||
created_at?: string;
|
||||
id?: string;
|
||||
id?: number;
|
||||
question?: string;
|
||||
response?: string;
|
||||
};
|
||||
@ -103,11 +103,11 @@ export type Database = {
|
||||
user_id: string | null;
|
||||
};
|
||||
Insert: {
|
||||
conversation?: number;
|
||||
conversation: number;
|
||||
created_at?: string;
|
||||
description: string;
|
||||
id?: number;
|
||||
image_url?: string;
|
||||
image_url: string;
|
||||
last_conv?: string | null;
|
||||
model_type: Database["public"]["Enums"]["modelType"];
|
||||
name: string;
|
||||
@ -547,3 +547,18 @@ export type Enums<
|
||||
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
|
||||
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
||||
: never;
|
||||
|
||||
export type CompositeTypes<
|
||||
PublicCompositeTypeNameOrOptions extends
|
||||
| keyof PublicSchema["CompositeTypes"]
|
||||
| { schema: keyof Database },
|
||||
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
||||
schema: keyof Database;
|
||||
}
|
||||
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
||||
: never = never
|
||||
> = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
|
||||
? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
||||
: PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"]
|
||||
? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
||||
: never;
|
||||
|
Loading…
x
Reference in New Issue
Block a user