diff --git a/xtablo-expo/types/database.types.ts b/xtablo-expo/types/database.types.ts index 458647e..980400d 100644 --- a/xtablo-expo/types/database.types.ts +++ b/xtablo-expo/types/database.types.ts @@ -309,6 +309,54 @@ export type Database = { }; Relationships: []; }; + tasks: { + Row: { + assignee_id: string | null; + created_at: string; + deleted_at: string | null; + description: string | null; + due_date: string | null; + id: string; + is_parent: boolean; + parent_task_id: string | null; + position: number; + status: Database["public"]["Enums"]["task_status"]; + tablo_id: string; + title: string; + updated_at: string; + }; + Insert: { + assignee_id?: string | null; + created_at?: string; + deleted_at?: string | null; + description?: string | null; + due_date?: string | null; + id?: string; + is_parent?: boolean; + parent_task_id?: string | null; + position?: number; + status?: Database["public"]["Enums"]["task_status"]; + tablo_id: string; + title: string; + updated_at?: string; + }; + Update: { + assignee_id?: string | null; + created_at?: string; + deleted_at?: string | null; + description?: string | null; + due_date?: string | null; + id?: string; + is_parent?: boolean; + parent_task_id?: string | null; + position?: number; + status?: Database["public"]["Enums"]["task_status"]; + tablo_id?: string; + title?: string; + updated_at?: string; + }; + Relationships: []; + }; }; Views: { events_and_tablos: { @@ -350,6 +398,25 @@ export type Database = { }, ]; }; + tasks_with_assignee: { + Row: { + assignee_avatar: string | null; + assignee_id: string | null; + assignee_name: string | null; + created_at: string | null; + description: string | null; + due_date: string | null; + id: string | null; + is_parent: boolean | null; + parent_task_id: string | null; + position: number | null; + status: Database["public"]["Enums"]["task_status"] | null; + tablo_id: string | null; + title: string | null; + updated_at: string | null; + }; + Relationships: []; + }; }; Functions: { generate_random_string: { @@ -359,6 +426,7 @@ export type Database = { }; Enums: { devis_status: "draft" | "sent" | "accepted" | "rejected" | "expired"; + task_status: "todo" | "in_progress" | "in_review" | "done"; }; CompositeTypes: { [_ in never]: never; @@ -485,6 +553,7 @@ export const Constants = { public: { Enums: { devis_status: ["draft", "sent", "accepted", "rejected", "expired"], + task_status: ["todo", "in_progress", "in_review", "done"], }, }, } as const;