mirror of
https://github.com/SkalaraAI/beta.git
synced 2025-04-09 15:00:20 -04:00
481 lines
11 KiB
TypeScript
481 lines
11 KiB
TypeScript
export type Json =
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null
|
|
| { [key: string]: Json | undefined }
|
|
| Json[]
|
|
|
|
export interface Database {
|
|
public: {
|
|
Tables: {
|
|
documents: {
|
|
Row: {
|
|
content: string | null
|
|
embedding: string | null
|
|
id: number
|
|
metadata: Json | null
|
|
}
|
|
Insert: {
|
|
content?: string | null
|
|
embedding?: string | null
|
|
id?: number
|
|
metadata?: Json | null
|
|
}
|
|
Update: {
|
|
content?: string | null
|
|
embedding?: string | null
|
|
id?: number
|
|
metadata?: Json | null
|
|
}
|
|
Relationships: []
|
|
}
|
|
feature: {
|
|
Row: {
|
|
created_at: string
|
|
description: string | null
|
|
id: number
|
|
name: string
|
|
project_id: number
|
|
}
|
|
Insert: {
|
|
created_at?: string
|
|
description?: string | null
|
|
id?: number
|
|
name: string
|
|
project_id: number
|
|
}
|
|
Update: {
|
|
created_at?: string
|
|
description?: string | null
|
|
id?: number
|
|
name?: string
|
|
project_id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "feature_project_id_fkey"
|
|
columns: ["project_id"]
|
|
referencedRelation: "project"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
feature_dependencies: {
|
|
Row: {
|
|
dependency_id: number
|
|
feature_id: number
|
|
id: number
|
|
}
|
|
Insert: {
|
|
dependency_id: number
|
|
feature_id: number
|
|
id?: number
|
|
}
|
|
Update: {
|
|
dependency_id?: number
|
|
feature_id?: number
|
|
id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "feature_dependencies_dependency_id_fkey"
|
|
columns: ["dependency_id"]
|
|
referencedRelation: "feature"
|
|
referencedColumns: ["id"]
|
|
},
|
|
{
|
|
foreignKeyName: "feature_dependencies_feature_id_fkey"
|
|
columns: ["feature_id"]
|
|
referencedRelation: "feature"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
message: {
|
|
Row: {
|
|
content: string
|
|
created_at: string
|
|
id: number
|
|
role: string
|
|
task_id: number
|
|
}
|
|
Insert: {
|
|
content: string
|
|
created_at?: string
|
|
id?: number
|
|
role: string
|
|
task_id: number
|
|
}
|
|
Update: {
|
|
content?: string
|
|
created_at?: string
|
|
id?: number
|
|
role?: string
|
|
task_id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "message_task_id_fkey"
|
|
columns: ["task_id"]
|
|
referencedRelation: "task"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
profile: {
|
|
Row: {
|
|
created_at: string
|
|
email: string
|
|
id: string
|
|
name: string | null
|
|
}
|
|
Insert: {
|
|
created_at?: string
|
|
email: string
|
|
id: string
|
|
name?: string | null
|
|
}
|
|
Update: {
|
|
created_at?: string
|
|
email?: string
|
|
id?: string
|
|
name?: string | null
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "profile_id_fkey"
|
|
columns: ["id"]
|
|
referencedRelation: "users"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
profile_project: {
|
|
Row: {
|
|
id: number
|
|
profile_id: string
|
|
project_id: number
|
|
}
|
|
Insert: {
|
|
id?: number
|
|
profile_id: string
|
|
project_id: number
|
|
}
|
|
Update: {
|
|
id?: number
|
|
profile_id?: string
|
|
project_id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "profile_project_profile_id_fkey"
|
|
columns: ["profile_id"]
|
|
referencedRelation: "profile"
|
|
referencedColumns: ["id"]
|
|
},
|
|
{
|
|
foreignKeyName: "profile_project_project_id_fkey"
|
|
columns: ["project_id"]
|
|
referencedRelation: "project"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
profile_task: {
|
|
Row: {
|
|
id: number
|
|
profile_id: string
|
|
task_id: number
|
|
}
|
|
Insert: {
|
|
id?: number
|
|
profile_id: string
|
|
task_id: number
|
|
}
|
|
Update: {
|
|
id?: number
|
|
profile_id?: string
|
|
task_id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "profile_task_profile_id_fkey"
|
|
columns: ["profile_id"]
|
|
referencedRelation: "profile"
|
|
referencedColumns: ["id"]
|
|
},
|
|
{
|
|
foreignKeyName: "profile_task_task_id_fkey"
|
|
columns: ["task_id"]
|
|
referencedRelation: "task"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
profile_team: {
|
|
Row: {
|
|
id: number
|
|
profile_id: string
|
|
team_id: number
|
|
}
|
|
Insert: {
|
|
id?: number
|
|
profile_id: string
|
|
team_id: number
|
|
}
|
|
Update: {
|
|
id?: number
|
|
profile_id?: string
|
|
team_id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "profile_team_profile_id_fkey"
|
|
columns: ["profile_id"]
|
|
referencedRelation: "profile"
|
|
referencedColumns: ["id"]
|
|
},
|
|
{
|
|
foreignKeyName: "profile_team_team_id_fkey"
|
|
columns: ["team_id"]
|
|
referencedRelation: "team"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
profile_workspace: {
|
|
Row: {
|
|
id: number
|
|
profile_id: string
|
|
workspace_id: number
|
|
}
|
|
Insert: {
|
|
id?: number
|
|
profile_id: string
|
|
workspace_id: number
|
|
}
|
|
Update: {
|
|
id?: number
|
|
profile_id?: string
|
|
workspace_id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "profile_workspace_profile_id_fkey"
|
|
columns: ["profile_id"]
|
|
referencedRelation: "profile"
|
|
referencedColumns: ["id"]
|
|
},
|
|
{
|
|
foreignKeyName: "profile_workspace_workspace_id_fkey"
|
|
columns: ["workspace_id"]
|
|
referencedRelation: "workspace"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
project: {
|
|
Row: {
|
|
created_at: string
|
|
description: string | null
|
|
id: number
|
|
name: string
|
|
stack: string[] | null
|
|
workspace_id: number
|
|
}
|
|
Insert: {
|
|
created_at?: string
|
|
description?: string | null
|
|
id?: number
|
|
name: string
|
|
stack?: string[] | null
|
|
workspace_id: number
|
|
}
|
|
Update: {
|
|
created_at?: string
|
|
description?: string | null
|
|
id?: number
|
|
name?: string
|
|
stack?: string[] | null
|
|
workspace_id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "project_workspace_id_fkey"
|
|
columns: ["workspace_id"]
|
|
referencedRelation: "workspace"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
task: {
|
|
Row: {
|
|
created_at: string
|
|
description: string | null
|
|
feature_id: number | null
|
|
id: number
|
|
name: string
|
|
project_id: number
|
|
}
|
|
Insert: {
|
|
created_at?: string
|
|
description?: string | null
|
|
feature_id?: number | null
|
|
id?: number
|
|
name: string
|
|
project_id: number
|
|
}
|
|
Update: {
|
|
created_at?: string
|
|
description?: string | null
|
|
feature_id?: number | null
|
|
id?: number
|
|
name?: string
|
|
project_id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "task_feature_id_fkey"
|
|
columns: ["feature_id"]
|
|
referencedRelation: "feature"
|
|
referencedColumns: ["id"]
|
|
},
|
|
{
|
|
foreignKeyName: "task_project_id_fkey"
|
|
columns: ["project_id"]
|
|
referencedRelation: "project"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
team: {
|
|
Row: {
|
|
created_at: string
|
|
description: string | null
|
|
id: number
|
|
name: string
|
|
workspace_id: number
|
|
}
|
|
Insert: {
|
|
created_at?: string
|
|
description?: string | null
|
|
id?: number
|
|
name: string
|
|
workspace_id: number
|
|
}
|
|
Update: {
|
|
created_at?: string
|
|
description?: string | null
|
|
id?: number
|
|
name?: string
|
|
workspace_id?: number
|
|
}
|
|
Relationships: [
|
|
{
|
|
foreignKeyName: "team_workspace_id_fkey"
|
|
columns: ["workspace_id"]
|
|
referencedRelation: "workspace"
|
|
referencedColumns: ["id"]
|
|
}
|
|
]
|
|
}
|
|
workspace: {
|
|
Row: {
|
|
created_at: string
|
|
icon: string | null
|
|
id: number
|
|
name: string
|
|
}
|
|
Insert: {
|
|
created_at?: string
|
|
icon?: string | null
|
|
id?: number
|
|
name: string
|
|
}
|
|
Update: {
|
|
created_at?: string
|
|
icon?: string | null
|
|
id?: number
|
|
name?: string
|
|
}
|
|
Relationships: []
|
|
}
|
|
}
|
|
Views: {
|
|
[_ in never]: never
|
|
}
|
|
Functions: {
|
|
hnswhandler: {
|
|
Args: {
|
|
"": unknown
|
|
}
|
|
Returns: unknown
|
|
}
|
|
ivfflathandler: {
|
|
Args: {
|
|
"": unknown
|
|
}
|
|
Returns: unknown
|
|
}
|
|
match_documents: {
|
|
Args: {
|
|
query_embedding: string
|
|
match_count?: number
|
|
filter?: Json
|
|
}
|
|
Returns: {
|
|
id: number
|
|
content: string
|
|
metadata: Json
|
|
embedding: Json
|
|
similarity: number
|
|
}[]
|
|
}
|
|
vector_avg: {
|
|
Args: {
|
|
"": number[]
|
|
}
|
|
Returns: string
|
|
}
|
|
vector_dims: {
|
|
Args: {
|
|
"": string
|
|
}
|
|
Returns: number
|
|
}
|
|
vector_norm: {
|
|
Args: {
|
|
"": string
|
|
}
|
|
Returns: number
|
|
}
|
|
vector_out: {
|
|
Args: {
|
|
"": string
|
|
}
|
|
Returns: unknown
|
|
}
|
|
vector_send: {
|
|
Args: {
|
|
"": string
|
|
}
|
|
Returns: string
|
|
}
|
|
vector_typmod_in: {
|
|
Args: {
|
|
"": unknown[]
|
|
}
|
|
Returns: number
|
|
}
|
|
}
|
|
Enums: {
|
|
[_ in never]: never
|
|
}
|
|
CompositeTypes: {
|
|
[_ in never]: never
|
|
}
|
|
}
|
|
}
|
|
|