Database: { graphql_public: { CompositeTypes: { [_ in never]: never }; Enums: { [_ in never]: never }; Functions: { graphql: { Args: { extensions?: Json; operationName?: string; query?: string; variables?: Json; }; Returns: Json; }; }; Tables: { [_ in never]: never }; Views: { [_ in never]: never }; }; public: { CompositeTypes: { [_ in never]: never }; Enums: { [_ in never]: never }; Functions: { [_ in never]: never }; Tables: { feedback: { Insert: { created_at?: string | null; description?: string | null; email?: string | null; id?: number; screenshot?: string | null; type?: string | null; user?: string | null; user_agent?: string | null; }; Relationships: [{ columns: ["user"]; foreignKeyName: "feedback_user_fkey"; isOneToOne: false; referencedColumns: ["id"]; referencedRelation: "users"; }]; Row: { created_at: string | null; description: string | null; email: string | null; id: number; screenshot: string | null; type: string | null; user: string | null; user_agent: string | null; }; Update: { created_at?: string | null; description?: string | null; email?: string | null; id?: number; screenshot?: string | null; type?: string | null; user?: string | null; user_agent?: string | null; }; }; profile: { Insert: { avatar_url?: string | null; created_at?: string | null; email?: string | null; id: string; name?: string | null; plan?: string | null; stripe_customer?: string | null; }; Relationships: [{ columns: ["id"]; foreignKeyName: "profile_id_fkey"; isOneToOne: true; referencedColumns: ["id"]; referencedRelation: "users"; }]; Row: { avatar_url: string | null; created_at: string | null; email: string | null; id: string; name: string | null; plan: string | null; stripe_customer: string | null; }; Update: { avatar_url?: string | null; created_at?: string | null; email?: string | null; id?: string; name?: string | null; plan?: string | null; stripe_customer?: string | null; }; }; project: { Insert: { annotations?: Json | null; configuration?: Json | null; created_at?: string | null; id?: string; locales?: Json | null; model?: string | null; options?: Json | null; thumbnail?: string | null; title?: string | null; user_id?: string | null; }; Relationships: [{ columns: ["user_id"]; foreignKeyName: "project_user_id_fkey"; isOneToOne: false; referencedColumns: ["id"]; referencedRelation: "users"; }]; Row: { annotations: Json | null; configuration: Json | null; created_at: string | null; id: string; locales: Json | null; model: string | null; options: Json | null; thumbnail: string | null; title: string | null; user_id: string | null; }; Update: { annotations?: Json | null; configuration?: Json | null; created_at?: string | null; id?: string; locales?: Json | null; model?: string | null; options?: Json | null; thumbnail?: string | null; title?: string | null; user_id?: string | null; }; }; }; Views: { [_ in never]: never }; }; storage: { CompositeTypes: { [_ in never]: never }; Enums: { [_ in never]: never }; Functions: { can_insert_object: { Args: { bucketid: string; metadata: Json; name: string; owner: string; }; Returns: undefined; }; extension: { Args: { name: string; }; Returns: string; }; filename: { Args: { name: string; }; Returns: string; }; foldername: { Args: { name: string; }; Returns: string[]; }; get_size_by_bucket: { Args: Record<PropertyKey, never>; Returns: { bucket_id: string; size: number; }[]; }; list_multipart_uploads_with_delimiter: { Args: { bucket_id: string; delimiter_param: string; max_keys?: number; next_key_token?: string; next_upload_token?: string; prefix_param: string; }; Returns: { created_at: string; id: string; key: string; }[]; }; list_objects_with_delimiter: { Args: { bucket_id: string; delimiter_param: string; max_keys?: number; next_token?: string; prefix_param: string; start_after?: string; }; Returns: { id: string; metadata: Json; name: string; updated_at: string; }[]; }; operation: { Args: Record<PropertyKey, never>; Returns: string; }; search: { Args: { bucketname: string; levels?: number; limits?: number; offsets?: number; prefix: string; search?: string; sortcolumn?: string; sortorder?: string; }; Returns: { created_at: string; id: string; last_accessed_at: string; metadata: Json; name: string; updated_at: string; }[]; }; }; Tables: { buckets: { Insert: { allowed_mime_types?: string[] | null; avif_autodetection?: boolean | null; created_at?: string | null; file_size_limit?: number | null; id: string; name: string; owner?: string | null; owner_id?: string | null; public?: boolean | null; updated_at?: string | null; }; Relationships: []; Row: { allowed_mime_types: string[] | null; avif_autodetection: boolean | null; created_at: string | null; file_size_limit: number | null; id: string; name: string; owner: string | null; owner_id: string | null; public: boolean | null; updated_at: string | null; }; Update: { allowed_mime_types?: string[] | null; avif_autodetection?: boolean | null; created_at?: string | null; file_size_limit?: number | null; id?: string; name?: string; owner?: string | null; owner_id?: string | null; public?: boolean | null; updated_at?: string | null; }; }; migrations: { Insert: { executed_at?: string | null; hash: string; id: number; name: string; }; Relationships: []; Row: { executed_at: string | null; hash: string; id: number; name: string; }; Update: { executed_at?: string | null; hash?: string; id?: number; name?: string; }; }; objects: { Insert: { bucket_id?: string | null; created_at?: string | null; id?: string; last_accessed_at?: string | null; metadata?: Json | null; name?: string | null; owner?: string | null; owner_id?: string | null; path_tokens?: string[] | null; updated_at?: string | null; version?: string | null; }; Relationships: [{ columns: ["bucket_id"]; foreignKeyName: "objects_bucketId_fkey"; isOneToOne: false; referencedColumns: ["id"]; referencedRelation: "buckets"; }]; Row: { bucket_id: string | null; created_at: string | null; id: string; last_accessed_at: string | null; metadata: Json | null; name: string | null; owner: string | null; owner_id: string | null; path_tokens: string[] | null; updated_at: string | null; version: string | null; }; Update: { bucket_id?: string | null; created_at?: string | null; id?: string; last_accessed_at?: string | null; metadata?: Json | null; name?: string | null; owner?: string | null; owner_id?: string | null; path_tokens?: string[] | null; updated_at?: string | null; version?: string | null; }; }; s3_multipart_uploads: { Insert: { bucket_id: string; created_at?: string; id: string; in_progress_size?: number; key: string; owner_id?: string | null; upload_signature: string; version: string; }; Relationships: [{ columns: ["bucket_id"]; foreignKeyName: "s3_multipart_uploads_bucket_id_fkey"; isOneToOne: false; referencedColumns: ["id"]; referencedRelation: "buckets"; }]; Row: { bucket_id: string; created_at: string; id: string; in_progress_size: number; key: string; owner_id: string | null; upload_signature: string; version: string; }; Update: { bucket_id?: string; created_at?: string; id?: string; in_progress_size?: number; key?: string; owner_id?: string | null; upload_signature?: string; version?: string; }; }; s3_multipart_uploads_parts: { Insert: { bucket_id: string; created_at?: string; etag: string; id?: string; key: string; owner_id?: string | null; part_number: number; size?: number; upload_id: string; version: string; }; Relationships: [{ columns: ["bucket_id"]; foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey"; isOneToOne: false; referencedColumns: ["id"]; referencedRelation: "buckets"; }, { columns: ["upload_id"]; foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey"; isOneToOne: false; referencedColumns: ["id"]; referencedRelation: "s3_multipart_uploads"; }]; Row: { bucket_id: string; created_at: string; etag: string; id: string; key: string; owner_id: string | null; part_number: number; size: number; upload_id: string; version: string; }; Update: { bucket_id?: string; created_at?: string; etag?: string; id?: string; key?: string; owner_id?: string | null; part_number?: number; size?: number; upload_id?: string; version?: string; }; }; }; Views: { [_ in never]: never }; }; } Type declaration
graphql_public: {
CompositeTypes: {
[_ in never]: never
};
Enums: {
[_ in never]: never
};
Functions: {
graphql: {
Args: {
extensions?: Json;
operationName?: string;
query?: string;
variables?: Json;
};
Returns: Json;
};
};
Tables: {
[_ in never]: never
};
Views: {
[_ in never]: never
};
}
CompositeTypes: {
[_ in never]: never
}
Enums: {
[_ in never]: never
}
Functions: {
graphql: {
Args: {
extensions?: Json;
operationName?: string;
query?: string;
variables?: Json;
};
Returns: Json;
};
}
graphql: {
Args: {
extensions?: Json;
operationName?: string;
query?: string;
variables?: Json;
};
Returns: Json;
}
Args: {
extensions?: Json;
operationName?: string;
query?: string;
variables?: Json;
}
Optional
extensions?: Json
Optional
operationName?: string
Optional
query?: string
Optional
variables?: Json
Returns: Json
Tables: {
[_ in never]: never
}
Views: {
[_ in never]: never
}
public: {
CompositeTypes: {
[_ in never]: never
};
Enums: {
[_ in never]: never
};
Functions: {
[_ in never]: never
};
Tables: {
feedback: {
Insert: {
created_at?: string | null;
description?: string | null;
email?: string | null;
id?: number;
screenshot?: string | null;
type?: string | null;
user?: string | null;
user_agent?: string | null;
};
Relationships: [{
columns: ["user"];
foreignKeyName: "feedback_user_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "users";
}];
Row: {
created_at: string | null;
description: string | null;
email: string | null;
id: number;
screenshot: string | null;
type: string | null;
user: string | null;
user_agent: string | null;
};
Update: {
created_at?: string | null;
description?: string | null;
email?: string | null;
id?: number;
screenshot?: string | null;
type?: string | null;
user?: string | null;
user_agent?: string | null;
};
};
profile: {
Insert: {
avatar_url?: string | null;
created_at?: string | null;
email?: string | null;
id: string;
name?: string | null;
plan?: string | null;
stripe_customer?: string | null;
};
Relationships: [{
columns: ["id"];
foreignKeyName: "profile_id_fkey";
isOneToOne: true;
referencedColumns: ["id"];
referencedRelation: "users";
}];
Row: {
avatar_url: string | null;
created_at: string | null;
email: string | null;
id: string;
name: string | null;
plan: string | null;
stripe_customer: string | null;
};
Update: {
avatar_url?: string | null;
created_at?: string | null;
email?: string | null;
id?: string;
name?: string | null;
plan?: string | null;
stripe_customer?: string | null;
};
};
project: {
Insert: {
annotations?: Json | null;
configuration?: Json | null;
created_at?: string | null;
id?: string;
locales?: Json | null;
model?: string | null;
options?: Json | null;
thumbnail?: string | null;
title?: string | null;
user_id?: string | null;
};
Relationships: [{
columns: ["user_id"];
foreignKeyName: "project_user_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "users";
}];
Row: {
annotations: Json | null;
configuration: Json | null;
created_at: string | null;
id: string;
locales: Json | null;
model: string | null;
options: Json | null;
thumbnail: string | null;
title: string | null;
user_id: string | null;
};
Update: {
annotations?: Json | null;
configuration?: Json | null;
created_at?: string | null;
id?: string;
locales?: Json | null;
model?: string | null;
options?: Json | null;
thumbnail?: string | null;
title?: string | null;
user_id?: string | null;
};
};
};
Views: {
[_ in never]: never
};
}
CompositeTypes: {
[_ in never]: never
}
Enums: {
[_ in never]: never
}
Functions: {
[_ in never]: never
}
Tables: {
feedback: {
Insert: {
created_at?: string | null;
description?: string | null;
email?: string | null;
id?: number;
screenshot?: string | null;
type?: string | null;
user?: string | null;
user_agent?: string | null;
};
Relationships: [{
columns: ["user"];
foreignKeyName: "feedback_user_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "users";
}];
Row: {
created_at: string | null;
description: string | null;
email: string | null;
id: number;
screenshot: string | null;
type: string | null;
user: string | null;
user_agent: string | null;
};
Update: {
created_at?: string | null;
description?: string | null;
email?: string | null;
id?: number;
screenshot?: string | null;
type?: string | null;
user?: string | null;
user_agent?: string | null;
};
};
profile: {
Insert: {
avatar_url?: string | null;
created_at?: string | null;
email?: string | null;
id: string;
name?: string | null;
plan?: string | null;
stripe_customer?: string | null;
};
Relationships: [{
columns: ["id"];
foreignKeyName: "profile_id_fkey";
isOneToOne: true;
referencedColumns: ["id"];
referencedRelation: "users";
}];
Row: {
avatar_url: string | null;
created_at: string | null;
email: string | null;
id: string;
name: string | null;
plan: string | null;
stripe_customer: string | null;
};
Update: {
avatar_url?: string | null;
created_at?: string | null;
email?: string | null;
id?: string;
name?: string | null;
plan?: string | null;
stripe_customer?: string | null;
};
};
project: {
Insert: {
annotations?: Json | null;
configuration?: Json | null;
created_at?: string | null;
id?: string;
locales?: Json | null;
model?: string | null;
options?: Json | null;
thumbnail?: string | null;
title?: string | null;
user_id?: string | null;
};
Relationships: [{
columns: ["user_id"];
foreignKeyName: "project_user_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "users";
}];
Row: {
annotations: Json | null;
configuration: Json | null;
created_at: string | null;
id: string;
locales: Json | null;
model: string | null;
options: Json | null;
thumbnail: string | null;
title: string | null;
user_id: string | null;
};
Update: {
annotations?: Json | null;
configuration?: Json | null;
created_at?: string | null;
id?: string;
locales?: Json | null;
model?: string | null;
options?: Json | null;
thumbnail?: string | null;
title?: string | null;
user_id?: string | null;
};
};
}
feedback: {
Insert: {
created_at?: string | null;
description?: string | null;
email?: string | null;
id?: number;
screenshot?: string | null;
type?: string | null;
user?: string | null;
user_agent?: string | null;
};
Relationships: [{
columns: ["user"];
foreignKeyName: "feedback_user_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "users";
}];
Row: {
created_at: string | null;
description: string | null;
email: string | null;
id: number;
screenshot: string | null;
type: string | null;
user: string | null;
user_agent: string | null;
};
Update: {
created_at?: string | null;
description?: string | null;
email?: string | null;
id?: number;
screenshot?: string | null;
type?: string | null;
user?: string | null;
user_agent?: string | null;
};
}
Insert: {
created_at?: string | null;
description?: string | null;
email?: string | null;
id?: number;
screenshot?: string | null;
type?: string | null;
user?: string | null;
user_agent?: string | null;
}
Optional
created_at?: string | null
Optional
description?: string | null
Optional
email?: string | null
Optional
id?: number
Optional
screenshot?: string | null
Optional
type?: string | null
Optional
user?: string | null
Optional
user_agent?: string | null
Relationships: [{
columns: ["user"];
foreignKeyName: "feedback_user_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "users";
}]
Row: {
created_at: string | null;
description: string | null;
email: string | null;
id: number;
screenshot: string | null;
type: string | null;
user: string | null;
user_agent: string | null;
}
created_at: string | null
description: string | null
email: string | null
id: number
screenshot: string | null
type: string | null
user: string | null
user_agent: string | null
Update: {
created_at?: string | null;
description?: string | null;
email?: string | null;
id?: number;
screenshot?: string | null;
type?: string | null;
user?: string | null;
user_agent?: string | null;
}
Optional
created_at?: string | null
Optional
description?: string | null
Optional
email?: string | null
Optional
id?: number
Optional
screenshot?: string | null
Optional
type?: string | null
Optional
user?: string | null
Optional
user_agent?: string | null
profile: {
Insert: {
avatar_url?: string | null;
created_at?: string | null;
email?: string | null;
id: string;
name?: string | null;
plan?: string | null;
stripe_customer?: string | null;
};
Relationships: [{
columns: ["id"];
foreignKeyName: "profile_id_fkey";
isOneToOne: true;
referencedColumns: ["id"];
referencedRelation: "users";
}];
Row: {
avatar_url: string | null;
created_at: string | null;
email: string | null;
id: string;
name: string | null;
plan: string | null;
stripe_customer: string | null;
};
Update: {
avatar_url?: string | null;
created_at?: string | null;
email?: string | null;
id?: string;
name?: string | null;
plan?: string | null;
stripe_customer?: string | null;
};
}
Insert: {
avatar_url?: string | null;
created_at?: string | null;
email?: string | null;
id: string;
name?: string | null;
plan?: string | null;
stripe_customer?: string | null;
}
Optional
avatar_url?: string | null
Optional
created_at?: string | null
Optional
email?: string | null
id: string
Optional
name?: string | null
Optional
plan?: string | null
Optional
stripe_customer?: string | null
Relationships: [{
columns: ["id"];
foreignKeyName: "profile_id_fkey";
isOneToOne: true;
referencedColumns: ["id"];
referencedRelation: "users";
}]
Row: {
avatar_url: string | null;
created_at: string | null;
email: string | null;
id: string;
name: string | null;
plan: string | null;
stripe_customer: string | null;
}
avatar_url: string | null
created_at: string | null
email: string | null
id: string
name: string | null
plan: string | null
stripe_customer: string | null
Update: {
avatar_url?: string | null;
created_at?: string | null;
email?: string | null;
id?: string;
name?: string | null;
plan?: string | null;
stripe_customer?: string | null;
}
Optional
avatar_url?: string | null
Optional
created_at?: string | null
Optional
email?: string | null
Optional
id?: string
Optional
name?: string | null
Optional
plan?: string | null
Optional
stripe_customer?: string | null
project: {
Insert: {
annotations?: Json | null;
configuration?: Json | null;
created_at?: string | null;
id?: string;
locales?: Json | null;
model?: string | null;
options?: Json | null;
thumbnail?: string | null;
title?: string | null;
user_id?: string | null;
};
Relationships: [{
columns: ["user_id"];
foreignKeyName: "project_user_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "users";
}];
Row: {
annotations: Json | null;
configuration: Json | null;
created_at: string | null;
id: string;
locales: Json | null;
model: string | null;
options: Json | null;
thumbnail: string | null;
title: string | null;
user_id: string | null;
};
Update: {
annotations?: Json | null;
configuration?: Json | null;
created_at?: string | null;
id?: string;
locales?: Json | null;
model?: string | null;
options?: Json | null;
thumbnail?: string | null;
title?: string | null;
user_id?: string | null;
};
}
Insert: {
annotations?: Json | null;
configuration?: Json | null;
created_at?: string | null;
id?: string;
locales?: Json | null;
model?: string | null;
options?: Json | null;
thumbnail?: string | null;
title?: string | null;
user_id?: string | null;
}
Optional
annotations?: Json | null
Optional
configuration?: Json | null
Optional
created_at?: string | null
Optional
id?: string
Optional
locales?: Json | null
Optional
model?: string | null
Optional
options?: Json | null
Optional
thumbnail?: string | null
Optional
title?: string | null
Optional
user_id?: string | null
Relationships: [{
columns: ["user_id"];
foreignKeyName: "project_user_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "users";
}]
Row: {
annotations: Json | null;
configuration: Json | null;
created_at: string | null;
id: string;
locales: Json | null;
model: string | null;
options: Json | null;
thumbnail: string | null;
title: string | null;
user_id: string | null;
}
annotations: Json | null
configuration: Json | null
created_at: string | null
id: string
locales: Json | null
model: string | null
options: Json | null
thumbnail: string | null
title: string | null
user_id: string | null
Update: {
annotations?: Json | null;
configuration?: Json | null;
created_at?: string | null;
id?: string;
locales?: Json | null;
model?: string | null;
options?: Json | null;
thumbnail?: string | null;
title?: string | null;
user_id?: string | null;
}
Optional
annotations?: Json | null
Optional
configuration?: Json | null
Optional
created_at?: string | null
Optional
id?: string
Optional
locales?: Json | null
Optional
model?: string | null
Optional
options?: Json | null
Optional
thumbnail?: string | null
Optional
title?: string | null
Optional
user_id?: string | null
Views: {
[_ in never]: never
}
storage: {
CompositeTypes: {
[_ in never]: never
};
Enums: {
[_ in never]: never
};
Functions: {
can_insert_object: {
Args: {
bucketid: string;
metadata: Json;
name: string;
owner: string;
};
Returns: undefined;
};
extension: {
Args: {
name: string;
};
Returns: string;
};
filename: {
Args: {
name: string;
};
Returns: string;
};
foldername: {
Args: {
name: string;
};
Returns: string[];
};
get_size_by_bucket: {
Args: Record<PropertyKey, never>;
Returns: {
bucket_id: string;
size: number;
}[];
};
list_multipart_uploads_with_delimiter: {
Args: {
bucket_id: string;
delimiter_param: string;
max_keys?: number;
next_key_token?: string;
next_upload_token?: string;
prefix_param: string;
};
Returns: {
created_at: string;
id: string;
key: string;
}[];
};
list_objects_with_delimiter: {
Args: {
bucket_id: string;
delimiter_param: string;
max_keys?: number;
next_token?: string;
prefix_param: string;
start_after?: string;
};
Returns: {
id: string;
metadata: Json;
name: string;
updated_at: string;
}[];
};
operation: {
Args: Record<PropertyKey, never>;
Returns: string;
};
search: {
Args: {
bucketname: string;
levels?: number;
limits?: number;
offsets?: number;
prefix: string;
search?: string;
sortcolumn?: string;
sortorder?: string;
};
Returns: {
created_at: string;
id: string;
last_accessed_at: string;
metadata: Json;
name: string;
updated_at: string;
}[];
};
};
Tables: {
buckets: {
Insert: {
allowed_mime_types?: string[] | null;
avif_autodetection?: boolean | null;
created_at?: string | null;
file_size_limit?: number | null;
id: string;
name: string;
owner?: string | null;
owner_id?: string | null;
public?: boolean | null;
updated_at?: string | null;
};
Relationships: [];
Row: {
allowed_mime_types: string[] | null;
avif_autodetection: boolean | null;
created_at: string | null;
file_size_limit: number | null;
id: string;
name: string;
owner: string | null;
owner_id: string | null;
public: boolean | null;
updated_at: string | null;
};
Update: {
allowed_mime_types?: string[] | null;
avif_autodetection?: boolean | null;
created_at?: string | null;
file_size_limit?: number | null;
id?: string;
name?: string;
owner?: string | null;
owner_id?: string | null;
public?: boolean | null;
updated_at?: string | null;
};
};
migrations: {
Insert: {
executed_at?: string | null;
hash: string;
id: number;
name: string;
};
Relationships: [];
Row: {
executed_at: string | null;
hash: string;
id: number;
name: string;
};
Update: {
executed_at?: string | null;
hash?: string;
id?: number;
name?: string;
};
};
objects: {
Insert: {
bucket_id?: string | null;
created_at?: string | null;
id?: string;
last_accessed_at?: string | null;
metadata?: Json | null;
name?: string | null;
owner?: string | null;
owner_id?: string | null;
path_tokens?: string[] | null;
updated_at?: string | null;
version?: string | null;
};
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "objects_bucketId_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}];
Row: {
bucket_id: string | null;
created_at: string | null;
id: string;
last_accessed_at: string | null;
metadata: Json | null;
name: string | null;
owner: string | null;
owner_id: string | null;
path_tokens: string[] | null;
updated_at: string | null;
version: string | null;
};
Update: {
bucket_id?: string | null;
created_at?: string | null;
id?: string;
last_accessed_at?: string | null;
metadata?: Json | null;
name?: string | null;
owner?: string | null;
owner_id?: string | null;
path_tokens?: string[] | null;
updated_at?: string | null;
version?: string | null;
};
};
s3_multipart_uploads: {
Insert: {
bucket_id: string;
created_at?: string;
id: string;
in_progress_size?: number;
key: string;
owner_id?: string | null;
upload_signature: string;
version: string;
};
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}];
Row: {
bucket_id: string;
created_at: string;
id: string;
in_progress_size: number;
key: string;
owner_id: string | null;
upload_signature: string;
version: string;
};
Update: {
bucket_id?: string;
created_at?: string;
id?: string;
in_progress_size?: number;
key?: string;
owner_id?: string | null;
upload_signature?: string;
version?: string;
};
};
s3_multipart_uploads_parts: {
Insert: {
bucket_id: string;
created_at?: string;
etag: string;
id?: string;
key: string;
owner_id?: string | null;
part_number: number;
size?: number;
upload_id: string;
version: string;
};
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}, {
columns: ["upload_id"];
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "s3_multipart_uploads";
}];
Row: {
bucket_id: string;
created_at: string;
etag: string;
id: string;
key: string;
owner_id: string | null;
part_number: number;
size: number;
upload_id: string;
version: string;
};
Update: {
bucket_id?: string;
created_at?: string;
etag?: string;
id?: string;
key?: string;
owner_id?: string | null;
part_number?: number;
size?: number;
upload_id?: string;
version?: string;
};
};
};
Views: {
[_ in never]: never
};
}
CompositeTypes: {
[_ in never]: never
}
Enums: {
[_ in never]: never
}
Functions: {
can_insert_object: {
Args: {
bucketid: string;
metadata: Json;
name: string;
owner: string;
};
Returns: undefined;
};
extension: {
Args: {
name: string;
};
Returns: string;
};
filename: {
Args: {
name: string;
};
Returns: string;
};
foldername: {
Args: {
name: string;
};
Returns: string[];
};
get_size_by_bucket: {
Args: Record<PropertyKey, never>;
Returns: {
bucket_id: string;
size: number;
}[];
};
list_multipart_uploads_with_delimiter: {
Args: {
bucket_id: string;
delimiter_param: string;
max_keys?: number;
next_key_token?: string;
next_upload_token?: string;
prefix_param: string;
};
Returns: {
created_at: string;
id: string;
key: string;
}[];
};
list_objects_with_delimiter: {
Args: {
bucket_id: string;
delimiter_param: string;
max_keys?: number;
next_token?: string;
prefix_param: string;
start_after?: string;
};
Returns: {
id: string;
metadata: Json;
name: string;
updated_at: string;
}[];
};
operation: {
Args: Record<PropertyKey, never>;
Returns: string;
};
search: {
Args: {
bucketname: string;
levels?: number;
limits?: number;
offsets?: number;
prefix: string;
search?: string;
sortcolumn?: string;
sortorder?: string;
};
Returns: {
created_at: string;
id: string;
last_accessed_at: string;
metadata: Json;
name: string;
updated_at: string;
}[];
};
}
can_insert_object: {
Args: {
bucketid: string;
metadata: Json;
name: string;
owner: string;
};
Returns: undefined;
}
Args: {
bucketid: string;
metadata: Json;
name: string;
owner: string;
}
bucketid: string
metadata: Json
name: string
owner: string
Returns: undefined
extension: {
Args: {
name: string;
};
Returns: string;
}
Args: {
name: string;
}
Returns: string
filename: {
Args: {
name: string;
};
Returns: string;
}
Args: {
name: string;
}
Returns: string
foldername: {
Args: {
name: string;
};
Returns: string[];
}
Args: {
name: string;
}
Returns: string[]
get_size_by_bucket: {
Args: Record<PropertyKey, never>;
Returns: {
bucket_id: string;
size: number;
}[];
}
Args: Record<PropertyKey, never>
Returns: {
bucket_id: string;
size: number;
}[]
list_multipart_uploads_with_delimiter: {
Args: {
bucket_id: string;
delimiter_param: string;
max_keys?: number;
next_key_token?: string;
next_upload_token?: string;
prefix_param: string;
};
Returns: {
created_at: string;
id: string;
key: string;
}[];
}
Args: {
bucket_id: string;
delimiter_param: string;
max_keys?: number;
next_key_token?: string;
next_upload_token?: string;
prefix_param: string;
}
bucket_id: string
delimiter_param: string
Optional
max_keys?: number
Optional
next_key_token?: string
Optional
next_upload_token?: string
prefix_param: string
Returns: {
created_at: string;
id: string;
key: string;
}[]
list_objects_with_delimiter: {
Args: {
bucket_id: string;
delimiter_param: string;
max_keys?: number;
next_token?: string;
prefix_param: string;
start_after?: string;
};
Returns: {
id: string;
metadata: Json;
name: string;
updated_at: string;
}[];
}
Args: {
bucket_id: string;
delimiter_param: string;
max_keys?: number;
next_token?: string;
prefix_param: string;
start_after?: string;
}
bucket_id: string
delimiter_param: string
Optional
max_keys?: number
Optional
next_token?: string
prefix_param: string
Optional
start_after?: string
Returns: {
id: string;
metadata: Json;
name: string;
updated_at: string;
}[]
operation: {
Args: Record<PropertyKey, never>;
Returns: string;
}
Args: Record<PropertyKey, never>
Returns: string
search: {
Args: {
bucketname: string;
levels?: number;
limits?: number;
offsets?: number;
prefix: string;
search?: string;
sortcolumn?: string;
sortorder?: string;
};
Returns: {
created_at: string;
id: string;
last_accessed_at: string;
metadata: Json;
name: string;
updated_at: string;
}[];
}
Args: {
bucketname: string;
levels?: number;
limits?: number;
offsets?: number;
prefix: string;
search?: string;
sortcolumn?: string;
sortorder?: string;
}
bucketname: string
Optional
levels?: number
Optional
limits?: number
Optional
offsets?: number
prefix: string
Optional
search?: string
Optional
sortcolumn?: string
Optional
sortorder?: string
Returns: {
created_at: string;
id: string;
last_accessed_at: string;
metadata: Json;
name: string;
updated_at: string;
}[]
Tables: {
buckets: {
Insert: {
allowed_mime_types?: string[] | null;
avif_autodetection?: boolean | null;
created_at?: string | null;
file_size_limit?: number | null;
id: string;
name: string;
owner?: string | null;
owner_id?: string | null;
public?: boolean | null;
updated_at?: string | null;
};
Relationships: [];
Row: {
allowed_mime_types: string[] | null;
avif_autodetection: boolean | null;
created_at: string | null;
file_size_limit: number | null;
id: string;
name: string;
owner: string | null;
owner_id: string | null;
public: boolean | null;
updated_at: string | null;
};
Update: {
allowed_mime_types?: string[] | null;
avif_autodetection?: boolean | null;
created_at?: string | null;
file_size_limit?: number | null;
id?: string;
name?: string;
owner?: string | null;
owner_id?: string | null;
public?: boolean | null;
updated_at?: string | null;
};
};
migrations: {
Insert: {
executed_at?: string | null;
hash: string;
id: number;
name: string;
};
Relationships: [];
Row: {
executed_at: string | null;
hash: string;
id: number;
name: string;
};
Update: {
executed_at?: string | null;
hash?: string;
id?: number;
name?: string;
};
};
objects: {
Insert: {
bucket_id?: string | null;
created_at?: string | null;
id?: string;
last_accessed_at?: string | null;
metadata?: Json | null;
name?: string | null;
owner?: string | null;
owner_id?: string | null;
path_tokens?: string[] | null;
updated_at?: string | null;
version?: string | null;
};
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "objects_bucketId_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}];
Row: {
bucket_id: string | null;
created_at: string | null;
id: string;
last_accessed_at: string | null;
metadata: Json | null;
name: string | null;
owner: string | null;
owner_id: string | null;
path_tokens: string[] | null;
updated_at: string | null;
version: string | null;
};
Update: {
bucket_id?: string | null;
created_at?: string | null;
id?: string;
last_accessed_at?: string | null;
metadata?: Json | null;
name?: string | null;
owner?: string | null;
owner_id?: string | null;
path_tokens?: string[] | null;
updated_at?: string | null;
version?: string | null;
};
};
s3_multipart_uploads: {
Insert: {
bucket_id: string;
created_at?: string;
id: string;
in_progress_size?: number;
key: string;
owner_id?: string | null;
upload_signature: string;
version: string;
};
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}];
Row: {
bucket_id: string;
created_at: string;
id: string;
in_progress_size: number;
key: string;
owner_id: string | null;
upload_signature: string;
version: string;
};
Update: {
bucket_id?: string;
created_at?: string;
id?: string;
in_progress_size?: number;
key?: string;
owner_id?: string | null;
upload_signature?: string;
version?: string;
};
};
s3_multipart_uploads_parts: {
Insert: {
bucket_id: string;
created_at?: string;
etag: string;
id?: string;
key: string;
owner_id?: string | null;
part_number: number;
size?: number;
upload_id: string;
version: string;
};
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}, {
columns: ["upload_id"];
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "s3_multipart_uploads";
}];
Row: {
bucket_id: string;
created_at: string;
etag: string;
id: string;
key: string;
owner_id: string | null;
part_number: number;
size: number;
upload_id: string;
version: string;
};
Update: {
bucket_id?: string;
created_at?: string;
etag?: string;
id?: string;
key?: string;
owner_id?: string | null;
part_number?: number;
size?: number;
upload_id?: string;
version?: string;
};
};
}
buckets: {
Insert: {
allowed_mime_types?: string[] | null;
avif_autodetection?: boolean | null;
created_at?: string | null;
file_size_limit?: number | null;
id: string;
name: string;
owner?: string | null;
owner_id?: string | null;
public?: boolean | null;
updated_at?: string | null;
};
Relationships: [];
Row: {
allowed_mime_types: string[] | null;
avif_autodetection: boolean | null;
created_at: string | null;
file_size_limit: number | null;
id: string;
name: string;
owner: string | null;
owner_id: string | null;
public: boolean | null;
updated_at: string | null;
};
Update: {
allowed_mime_types?: string[] | null;
avif_autodetection?: boolean | null;
created_at?: string | null;
file_size_limit?: number | null;
id?: string;
name?: string;
owner?: string | null;
owner_id?: string | null;
public?: boolean | null;
updated_at?: string | null;
};
}
Insert: {
allowed_mime_types?: string[] | null;
avif_autodetection?: boolean | null;
created_at?: string | null;
file_size_limit?: number | null;
id: string;
name: string;
owner?: string | null;
owner_id?: string | null;
public?: boolean | null;
updated_at?: string | null;
}
Optional
allowed_mime_types?: string[] | null
Optional
avif_autodetection?: boolean | null
Optional
created_at?: string | null
Optional
file_size_limit?: number | null
id: string
name: string
Optional
owner?: string | null
Optional
owner_id?: string | null
Optional
public?: boolean | null
Optional
updated_at?: string | null
Relationships: []
Row: {
allowed_mime_types: string[] | null;
avif_autodetection: boolean | null;
created_at: string | null;
file_size_limit: number | null;
id: string;
name: string;
owner: string | null;
owner_id: string | null;
public: boolean | null;
updated_at: string | null;
}
allowed_mime_types: string[] | null
avif_autodetection: boolean | null
created_at: string | null
file_size_limit: number | null
id: string
name: string
owner: string | null
owner_id: string | null
public: boolean | null
updated_at: string | null
Update: {
allowed_mime_types?: string[] | null;
avif_autodetection?: boolean | null;
created_at?: string | null;
file_size_limit?: number | null;
id?: string;
name?: string;
owner?: string | null;
owner_id?: string | null;
public?: boolean | null;
updated_at?: string | null;
}
Optional
allowed_mime_types?: string[] | null
Optional
avif_autodetection?: boolean | null
Optional
created_at?: string | null
Optional
file_size_limit?: number | null
Optional
id?: string
Optional
name?: string
Optional
owner?: string | null
Optional
owner_id?: string | null
Optional
public?: boolean | null
Optional
updated_at?: string | null
migrations: {
Insert: {
executed_at?: string | null;
hash: string;
id: number;
name: string;
};
Relationships: [];
Row: {
executed_at: string | null;
hash: string;
id: number;
name: string;
};
Update: {
executed_at?: string | null;
hash?: string;
id?: number;
name?: string;
};
}
Insert: {
executed_at?: string | null;
hash: string;
id: number;
name: string;
}
Optional
executed_at?: string | null
hash: string
id: number
name: string
Relationships: []
Row: {
executed_at: string | null;
hash: string;
id: number;
name: string;
}
executed_at: string | null
hash: string
id: number
name: string
Update: {
executed_at?: string | null;
hash?: string;
id?: number;
name?: string;
}
Optional
executed_at?: string | null
Optional
hash?: string
Optional
id?: number
Optional
name?: string
objects: {
Insert: {
bucket_id?: string | null;
created_at?: string | null;
id?: string;
last_accessed_at?: string | null;
metadata?: Json | null;
name?: string | null;
owner?: string | null;
owner_id?: string | null;
path_tokens?: string[] | null;
updated_at?: string | null;
version?: string | null;
};
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "objects_bucketId_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}];
Row: {
bucket_id: string | null;
created_at: string | null;
id: string;
last_accessed_at: string | null;
metadata: Json | null;
name: string | null;
owner: string | null;
owner_id: string | null;
path_tokens: string[] | null;
updated_at: string | null;
version: string | null;
};
Update: {
bucket_id?: string | null;
created_at?: string | null;
id?: string;
last_accessed_at?: string | null;
metadata?: Json | null;
name?: string | null;
owner?: string | null;
owner_id?: string | null;
path_tokens?: string[] | null;
updated_at?: string | null;
version?: string | null;
};
}
Insert: {
bucket_id?: string | null;
created_at?: string | null;
id?: string;
last_accessed_at?: string | null;
metadata?: Json | null;
name?: string | null;
owner?: string | null;
owner_id?: string | null;
path_tokens?: string[] | null;
updated_at?: string | null;
version?: string | null;
}
Optional
bucket_id?: string | null
Optional
created_at?: string | null
Optional
id?: string
Optional
last_accessed_at?: string | null
Optional
metadata?: Json | null
Optional
name?: string | null
Optional
owner?: string | null
Optional
owner_id?: string | null
Optional
path_tokens?: string[] | null
Optional
updated_at?: string | null
Optional
version?: string | null
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "objects_bucketId_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}]
Row: {
bucket_id: string | null;
created_at: string | null;
id: string;
last_accessed_at: string | null;
metadata: Json | null;
name: string | null;
owner: string | null;
owner_id: string | null;
path_tokens: string[] | null;
updated_at: string | null;
version: string | null;
}
bucket_id: string | null
created_at: string | null
id: string
last_accessed_at: string | null
metadata: Json | null
name: string | null
owner: string | null
owner_id: string | null
path_tokens: string[] | null
updated_at: string | null
version: string | null
Update: {
bucket_id?: string | null;
created_at?: string | null;
id?: string;
last_accessed_at?: string | null;
metadata?: Json | null;
name?: string | null;
owner?: string | null;
owner_id?: string | null;
path_tokens?: string[] | null;
updated_at?: string | null;
version?: string | null;
}
Optional
bucket_id?: string | null
Optional
created_at?: string | null
Optional
id?: string
Optional
last_accessed_at?: string | null
Optional
metadata?: Json | null
Optional
name?: string | null
Optional
owner?: string | null
Optional
owner_id?: string | null
Optional
path_tokens?: string[] | null
Optional
updated_at?: string | null
Optional
version?: string | null
s3_multipart_uploads: {
Insert: {
bucket_id: string;
created_at?: string;
id: string;
in_progress_size?: number;
key: string;
owner_id?: string | null;
upload_signature: string;
version: string;
};
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}];
Row: {
bucket_id: string;
created_at: string;
id: string;
in_progress_size: number;
key: string;
owner_id: string | null;
upload_signature: string;
version: string;
};
Update: {
bucket_id?: string;
created_at?: string;
id?: string;
in_progress_size?: number;
key?: string;
owner_id?: string | null;
upload_signature?: string;
version?: string;
};
}
Insert: {
bucket_id: string;
created_at?: string;
id: string;
in_progress_size?: number;
key: string;
owner_id?: string | null;
upload_signature: string;
version: string;
}
bucket_id: string
Optional
created_at?: string
id: string
Optional
in_progress_size?: number
key: string
Optional
owner_id?: string | null
upload_signature: string
version: string
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}]
Row: {
bucket_id: string;
created_at: string;
id: string;
in_progress_size: number;
key: string;
owner_id: string | null;
upload_signature: string;
version: string;
}
bucket_id: string
created_at: string
id: string
in_progress_size: number
key: string
owner_id: string | null
upload_signature: string
version: string
Update: {
bucket_id?: string;
created_at?: string;
id?: string;
in_progress_size?: number;
key?: string;
owner_id?: string | null;
upload_signature?: string;
version?: string;
}
Optional
bucket_id?: string
Optional
created_at?: string
Optional
id?: string
Optional
in_progress_size?: number
Optional
key?: string
Optional
owner_id?: string | null
Optional
upload_signature?: string
Optional
version?: string
s3_multipart_uploads_parts: {
Insert: {
bucket_id: string;
created_at?: string;
etag: string;
id?: string;
key: string;
owner_id?: string | null;
part_number: number;
size?: number;
upload_id: string;
version: string;
};
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}, {
columns: ["upload_id"];
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "s3_multipart_uploads";
}];
Row: {
bucket_id: string;
created_at: string;
etag: string;
id: string;
key: string;
owner_id: string | null;
part_number: number;
size: number;
upload_id: string;
version: string;
};
Update: {
bucket_id?: string;
created_at?: string;
etag?: string;
id?: string;
key?: string;
owner_id?: string | null;
part_number?: number;
size?: number;
upload_id?: string;
version?: string;
};
}
Insert: {
bucket_id: string;
created_at?: string;
etag: string;
id?: string;
key: string;
owner_id?: string | null;
part_number: number;
size?: number;
upload_id: string;
version: string;
}
bucket_id: string
Optional
created_at?: string
etag: string
Optional
id?: string
key: string
Optional
owner_id?: string | null
part_number: number
Optional
size?: number
upload_id: string
version: string
Relationships: [{
columns: ["bucket_id"];
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "buckets";
}, {
columns: ["upload_id"];
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
isOneToOne: false;
referencedColumns: ["id"];
referencedRelation: "s3_multipart_uploads";
}]
Row: {
bucket_id: string;
created_at: string;
etag: string;
id: string;
key: string;
owner_id: string | null;
part_number: number;
size: number;
upload_id: string;
version: string;
}
bucket_id: string
created_at: string
etag: string
id: string
key: string
owner_id: string | null
part_number: number
size: number
upload_id: string
version: string
Update: {
bucket_id?: string;
created_at?: string;
etag?: string;
id?: string;
key?: string;
owner_id?: string | null;
part_number?: number;
size?: number;
upload_id?: string;
version?: string;
}
Optional
bucket_id?: string
Optional
created_at?: string
Optional
etag?: string
Optional
id?: string
Optional
key?: string
Optional
owner_id?: string | null
Optional
part_number?: number
Optional
size?: number
Optional
upload_id?: string
Optional
version?: string
Views: {
[_ in never]: never
}