Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update database types #584

Merged
merged 1 commit into from
May 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions src/common/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ export interface Database {
Row: {
amount: number
id: number
time: string | null
timestamp: string
tree_id: string
username: string | null
Expand All @@ -244,7 +243,6 @@ export interface Database {
Insert: {
amount: number
id?: number
time?: string | null
timestamp: string
tree_id: string
username?: string | null
Expand All @@ -253,7 +251,6 @@ export interface Database {
Update: {
amount?: number
id?: number
time?: string | null
timestamp?: string
tree_id?: string
username?: string | null
Expand All @@ -280,6 +277,10 @@ export interface Database {
watered: number
}[]
}
remove_account: {
Args: Record<PropertyKey, never>
Returns: undefined
}
}
Enums: {
[_ in never]: never
Expand Down Expand Up @@ -356,6 +357,7 @@ export interface Database {
owner: string | null
path_tokens: string[] | null
updated_at: string | null
version: string | null
}
Insert: {
bucket_id?: string | null
Expand All @@ -367,6 +369,7 @@ export interface Database {
owner?: string | null
path_tokens?: string[] | null
updated_at?: string | null
version?: string | null
}
Update: {
bucket_id?: string | null
Expand All @@ -378,13 +381,23 @@ export interface Database {
owner?: string | null
path_tokens?: string[] | null
updated_at?: string | null
version?: string | null
}
}
}
Views: {
[_ in never]: never
}
Functions: {
can_insert_object: {
Args: {
bucketid: string
name: string
owner: string
metadata: Json
}
Returns: undefined
}
extension: {
Args: {
name: string
Expand Down