81 lines
1.8 KiB
TypeScript
81 lines
1.8 KiB
TypeScript
export type Json =
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null
|
|
| { [key: string]: Json | undefined }
|
|
| Json[]
|
|
|
|
export interface Database {
|
|
public: {
|
|
Tables: {
|
|
teams: {
|
|
Row: {
|
|
id: string
|
|
name: string
|
|
description: string | null
|
|
attributes: Json | null
|
|
created_at: string | null
|
|
updated_at: string | null
|
|
deleted_at: string | null
|
|
schema_version: number | null
|
|
avatar_url: string | null
|
|
}
|
|
Insert: {
|
|
id?: string
|
|
name: string
|
|
description?: string | null
|
|
attributes?: Json | null
|
|
created_at?: string | null
|
|
updated_at?: string | null
|
|
deleted_at?: string | null
|
|
schema_version?: number | null
|
|
avatar_url?: string | null
|
|
}
|
|
Update: {
|
|
id?: string
|
|
name?: string
|
|
description?: string | null
|
|
attributes?: Json | null
|
|
created_at?: string | null
|
|
updated_at?: string | null
|
|
deleted_at?: string | null
|
|
schema_version?: number | null
|
|
avatar_url?: string | null
|
|
}
|
|
}
|
|
team_membership: {
|
|
Row: {
|
|
id: string
|
|
team_id: string
|
|
user_id: string
|
|
is_creator: boolean
|
|
role: string
|
|
}
|
|
Insert: {
|
|
id?: string
|
|
team_id: string
|
|
user_id: string
|
|
is_creator?: boolean
|
|
role: string
|
|
}
|
|
Update: {
|
|
id?: string
|
|
team_id?: string
|
|
user_id?: string
|
|
is_creator?: boolean
|
|
role?: string
|
|
}
|
|
}
|
|
}
|
|
Views: {
|
|
[_ in never]: never
|
|
}
|
|
Functions: {
|
|
[_ in never]: never
|
|
}
|
|
Enums: {
|
|
[_ in never]: never
|
|
}
|
|
}
|
|
}
|