Files
e2b-dev--e2b/db/supabase.ts
T
Tomas Valenta 56d3b0c166 Fix db schema
2023-04-20 16:23:45 +00:00

119 lines
2.6 KiB
TypeScript

export type Json =
| string
| number
| boolean
| null
| { [key: string]: Json }
| Json[]
export interface Database {
public: {
Tables: {
deployments: {
Row: {
created_at: string
id: string
logs: Json[] | null
logs_raw: string | null
project_id: string
route_id: string | null
state: Database["public"]["Enums"]["deployment_state"] | null
url: string | null
}
Insert: {
created_at?: string
id?: string
logs?: Json[] | null
logs_raw?: string | null
project_id: string
route_id?: string | null
state?: Database["public"]["Enums"]["deployment_state"] | null
url?: string | null
}
Update: {
created_at?: string
id?: string
logs?: Json[] | null
logs_raw?: string | null
project_id?: string
route_id?: string | null
state?: Database["public"]["Enums"]["deployment_state"] | null
url?: string | null
}
}
projects: {
Row: {
created_at: string
data: Json | null
id: string
name: string
team_id: string
}
Insert: {
created_at?: string
data?: Json | null
id?: string
name?: string
team_id: string
}
Update: {
created_at?: string
data?: Json | null
id?: string
name?: string
team_id?: string
}
}
teams: {
Row: {
created_at: string
id: string
is_default: boolean | null
name: string
}
Insert: {
created_at?: string
id?: string
is_default?: boolean | null
name?: string
}
Update: {
created_at?: string
id?: string
is_default?: boolean | null
name?: string
}
}
users_teams: {
Row: {
created_at: string
team_id: string
user_id: string
}
Insert: {
created_at?: string
team_id: string
user_id: string
}
Update: {
created_at?: string
team_id?: string
user_id?: string
}
}
}
Views: {
[_ in never]: never
}
Functions: {
[_ in never]: never
}
Enums: {
deployment_state: "generating" | "deploying" | "finished" | "error"
}
CompositeTypes: {
[_ in never]: never
}
}
}