mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 11:03:49 +00:00
chore(#14): update schema type def
This commit is contained in:
Vendored
+527
-17
@@ -7,36 +7,227 @@ export type Json =
|
|||||||
| Json[]
|
| Json[]
|
||||||
|
|
||||||
export type Database = {
|
export type Database = {
|
||||||
|
graphql_public: {
|
||||||
|
Tables: {
|
||||||
|
[_ in never]: never
|
||||||
|
}
|
||||||
|
Views: {
|
||||||
|
[_ in never]: never
|
||||||
|
}
|
||||||
|
Functions: {
|
||||||
|
graphql: {
|
||||||
|
Args: {
|
||||||
|
operationName?: string
|
||||||
|
query?: string
|
||||||
|
variables?: Json
|
||||||
|
extensions?: Json
|
||||||
|
}
|
||||||
|
Returns: Json
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Enums: {
|
||||||
|
[_ in never]: never
|
||||||
|
}
|
||||||
|
CompositeTypes: {
|
||||||
|
[_ in never]: never
|
||||||
|
}
|
||||||
|
}
|
||||||
public: {
|
public: {
|
||||||
Tables: {
|
Tables: {
|
||||||
profiles: {
|
customers: {
|
||||||
Row: {
|
Row: {
|
||||||
avatar_url: string | null
|
|
||||||
full_name: string | null
|
|
||||||
id: string
|
id: string
|
||||||
updated_at: string | null
|
stripe_customer_id: string | null
|
||||||
username: string | null
|
|
||||||
website: string | null
|
|
||||||
}
|
}
|
||||||
Insert: {
|
Insert: {
|
||||||
avatar_url?: string | null
|
|
||||||
full_name?: string | null
|
|
||||||
id: string
|
id: string
|
||||||
updated_at?: string | null
|
stripe_customer_id?: string | null
|
||||||
username?: string | null
|
|
||||||
website?: string | null
|
|
||||||
}
|
}
|
||||||
Update: {
|
Update: {
|
||||||
avatar_url?: string | null
|
|
||||||
full_name?: string | null
|
|
||||||
id?: string
|
id?: string
|
||||||
updated_at?: string | null
|
stripe_customer_id?: string | null
|
||||||
username?: string | null
|
|
||||||
website?: string | null
|
|
||||||
}
|
}
|
||||||
Relationships: [
|
Relationships: [
|
||||||
{
|
{
|
||||||
foreignKeyName: "profiles_id_fkey"
|
foreignKeyName: "customers_id_fkey"
|
||||||
|
columns: ["id"]
|
||||||
|
isOneToOne: true
|
||||||
|
referencedRelation: "users"
|
||||||
|
referencedColumns: ["id"]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
prices: {
|
||||||
|
Row: {
|
||||||
|
active: boolean | null
|
||||||
|
currency: string | null
|
||||||
|
description: string | null
|
||||||
|
id: string
|
||||||
|
interval: Database["public"]["Enums"]["pricing_plan_interval"] | null
|
||||||
|
interval_count: number | null
|
||||||
|
metadata: Json | null
|
||||||
|
product_id: string | null
|
||||||
|
trial_period_days: number | null
|
||||||
|
type: Database["public"]["Enums"]["pricing_type"] | null
|
||||||
|
unit_amount: number | null
|
||||||
|
}
|
||||||
|
Insert: {
|
||||||
|
active?: boolean | null
|
||||||
|
currency?: string | null
|
||||||
|
description?: string | null
|
||||||
|
id: string
|
||||||
|
interval?: Database["public"]["Enums"]["pricing_plan_interval"] | null
|
||||||
|
interval_count?: number | null
|
||||||
|
metadata?: Json | null
|
||||||
|
product_id?: string | null
|
||||||
|
trial_period_days?: number | null
|
||||||
|
type?: Database["public"]["Enums"]["pricing_type"] | null
|
||||||
|
unit_amount?: number | null
|
||||||
|
}
|
||||||
|
Update: {
|
||||||
|
active?: boolean | null
|
||||||
|
currency?: string | null
|
||||||
|
description?: string | null
|
||||||
|
id?: string
|
||||||
|
interval?: Database["public"]["Enums"]["pricing_plan_interval"] | null
|
||||||
|
interval_count?: number | null
|
||||||
|
metadata?: Json | null
|
||||||
|
product_id?: string | null
|
||||||
|
trial_period_days?: number | null
|
||||||
|
type?: Database["public"]["Enums"]["pricing_type"] | null
|
||||||
|
unit_amount?: number | null
|
||||||
|
}
|
||||||
|
Relationships: [
|
||||||
|
{
|
||||||
|
foreignKeyName: "prices_product_id_fkey"
|
||||||
|
columns: ["product_id"]
|
||||||
|
isOneToOne: false
|
||||||
|
referencedRelation: "products"
|
||||||
|
referencedColumns: ["id"]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
products: {
|
||||||
|
Row: {
|
||||||
|
active: boolean | null
|
||||||
|
description: string | null
|
||||||
|
id: string
|
||||||
|
image: string | null
|
||||||
|
metadata: Json | null
|
||||||
|
name: string | null
|
||||||
|
}
|
||||||
|
Insert: {
|
||||||
|
active?: boolean | null
|
||||||
|
description?: string | null
|
||||||
|
id: string
|
||||||
|
image?: string | null
|
||||||
|
metadata?: Json | null
|
||||||
|
name?: string | null
|
||||||
|
}
|
||||||
|
Update: {
|
||||||
|
active?: boolean | null
|
||||||
|
description?: string | null
|
||||||
|
id?: string
|
||||||
|
image?: string | null
|
||||||
|
metadata?: Json | null
|
||||||
|
name?: string | null
|
||||||
|
}
|
||||||
|
Relationships: []
|
||||||
|
}
|
||||||
|
subscriptions: {
|
||||||
|
Row: {
|
||||||
|
cancel_at: string | null
|
||||||
|
cancel_at_period_end: boolean | null
|
||||||
|
canceled_at: string | null
|
||||||
|
created: string
|
||||||
|
current_period_end: string
|
||||||
|
current_period_start: string
|
||||||
|
ended_at: string | null
|
||||||
|
id: string
|
||||||
|
metadata: Json | null
|
||||||
|
price_id: string | null
|
||||||
|
quantity: number | null
|
||||||
|
status: Database["public"]["Enums"]["subscription_status"] | null
|
||||||
|
trial_end: string | null
|
||||||
|
trial_start: string | null
|
||||||
|
user_id: string
|
||||||
|
}
|
||||||
|
Insert: {
|
||||||
|
cancel_at?: string | null
|
||||||
|
cancel_at_period_end?: boolean | null
|
||||||
|
canceled_at?: string | null
|
||||||
|
created?: string
|
||||||
|
current_period_end?: string
|
||||||
|
current_period_start?: string
|
||||||
|
ended_at?: string | null
|
||||||
|
id: string
|
||||||
|
metadata?: Json | null
|
||||||
|
price_id?: string | null
|
||||||
|
quantity?: number | null
|
||||||
|
status?: Database["public"]["Enums"]["subscription_status"] | null
|
||||||
|
trial_end?: string | null
|
||||||
|
trial_start?: string | null
|
||||||
|
user_id: string
|
||||||
|
}
|
||||||
|
Update: {
|
||||||
|
cancel_at?: string | null
|
||||||
|
cancel_at_period_end?: boolean | null
|
||||||
|
canceled_at?: string | null
|
||||||
|
created?: string
|
||||||
|
current_period_end?: string
|
||||||
|
current_period_start?: string
|
||||||
|
ended_at?: string | null
|
||||||
|
id?: string
|
||||||
|
metadata?: Json | null
|
||||||
|
price_id?: string | null
|
||||||
|
quantity?: number | null
|
||||||
|
status?: Database["public"]["Enums"]["subscription_status"] | null
|
||||||
|
trial_end?: string | null
|
||||||
|
trial_start?: string | null
|
||||||
|
user_id?: string
|
||||||
|
}
|
||||||
|
Relationships: [
|
||||||
|
{
|
||||||
|
foreignKeyName: "subscriptions_price_id_fkey"
|
||||||
|
columns: ["price_id"]
|
||||||
|
isOneToOne: false
|
||||||
|
referencedRelation: "prices"
|
||||||
|
referencedColumns: ["id"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
foreignKeyName: "subscriptions_user_id_fkey"
|
||||||
|
columns: ["user_id"]
|
||||||
|
isOneToOne: false
|
||||||
|
referencedRelation: "users"
|
||||||
|
referencedColumns: ["id"]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
users: {
|
||||||
|
Row: {
|
||||||
|
avatar_url: string | null
|
||||||
|
billing_address: Json | null
|
||||||
|
full_name: string | null
|
||||||
|
id: string
|
||||||
|
payment_method: Json | null
|
||||||
|
}
|
||||||
|
Insert: {
|
||||||
|
avatar_url?: string | null
|
||||||
|
billing_address?: Json | null
|
||||||
|
full_name?: string | null
|
||||||
|
id: string
|
||||||
|
payment_method?: Json | null
|
||||||
|
}
|
||||||
|
Update: {
|
||||||
|
avatar_url?: string | null
|
||||||
|
billing_address?: Json | null
|
||||||
|
full_name?: string | null
|
||||||
|
id?: string
|
||||||
|
payment_method?: Json | null
|
||||||
|
}
|
||||||
|
Relationships: [
|
||||||
|
{
|
||||||
|
foreignKeyName: "users_id_fkey"
|
||||||
columns: ["id"]
|
columns: ["id"]
|
||||||
isOneToOne: true
|
isOneToOne: true
|
||||||
referencedRelation: "users"
|
referencedRelation: "users"
|
||||||
@@ -51,6 +242,324 @@ export type Database = {
|
|||||||
Functions: {
|
Functions: {
|
||||||
[_ in never]: never
|
[_ in never]: never
|
||||||
}
|
}
|
||||||
|
Enums: {
|
||||||
|
pricing_plan_interval: "day" | "week" | "month" | "year"
|
||||||
|
pricing_type: "one_time" | "recurring"
|
||||||
|
subscription_status:
|
||||||
|
| "trialing"
|
||||||
|
| "active"
|
||||||
|
| "canceled"
|
||||||
|
| "incomplete"
|
||||||
|
| "incomplete_expired"
|
||||||
|
| "past_due"
|
||||||
|
| "unpaid"
|
||||||
|
}
|
||||||
|
CompositeTypes: {
|
||||||
|
[_ in never]: never
|
||||||
|
}
|
||||||
|
}
|
||||||
|
storage: {
|
||||||
|
Tables: {
|
||||||
|
buckets: {
|
||||||
|
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
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
Relationships: []
|
||||||
|
}
|
||||||
|
migrations: {
|
||||||
|
Row: {
|
||||||
|
executed_at: string | null
|
||||||
|
hash: string
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
Insert: {
|
||||||
|
executed_at?: string | null
|
||||||
|
hash: string
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
Update: {
|
||||||
|
executed_at?: string | null
|
||||||
|
hash?: string
|
||||||
|
id?: number
|
||||||
|
name?: string
|
||||||
|
}
|
||||||
|
Relationships: []
|
||||||
|
}
|
||||||
|
objects: {
|
||||||
|
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
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
Relationships: [
|
||||||
|
{
|
||||||
|
foreignKeyName: "objects_bucketId_fkey"
|
||||||
|
columns: ["bucket_id"]
|
||||||
|
isOneToOne: false
|
||||||
|
referencedRelation: "buckets"
|
||||||
|
referencedColumns: ["id"]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
s3_multipart_uploads: {
|
||||||
|
Row: {
|
||||||
|
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
|
||||||
|
}
|
||||||
|
Update: {
|
||||||
|
bucket_id?: string
|
||||||
|
created_at?: string
|
||||||
|
id?: string
|
||||||
|
in_progress_size?: number
|
||||||
|
key?: string
|
||||||
|
owner_id?: string | null
|
||||||
|
upload_signature?: string
|
||||||
|
version?: string
|
||||||
|
}
|
||||||
|
Relationships: [
|
||||||
|
{
|
||||||
|
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey"
|
||||||
|
columns: ["bucket_id"]
|
||||||
|
isOneToOne: false
|
||||||
|
referencedRelation: "buckets"
|
||||||
|
referencedColumns: ["id"]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
s3_multipart_uploads_parts: {
|
||||||
|
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
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
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
|
||||||
|
}
|
||||||
|
Relationships: [
|
||||||
|
{
|
||||||
|
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey"
|
||||||
|
columns: ["bucket_id"]
|
||||||
|
isOneToOne: false
|
||||||
|
referencedRelation: "buckets"
|
||||||
|
referencedColumns: ["id"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey"
|
||||||
|
columns: ["upload_id"]
|
||||||
|
isOneToOne: false
|
||||||
|
referencedRelation: "s3_multipart_uploads"
|
||||||
|
referencedColumns: ["id"]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Views: {
|
||||||
|
[_ in never]: never
|
||||||
|
}
|
||||||
|
Functions: {
|
||||||
|
can_insert_object: {
|
||||||
|
Args: {
|
||||||
|
bucketid: string
|
||||||
|
name: string
|
||||||
|
owner: string
|
||||||
|
metadata: Json
|
||||||
|
}
|
||||||
|
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: {
|
||||||
|
size: number
|
||||||
|
bucket_id: string
|
||||||
|
}[]
|
||||||
|
}
|
||||||
|
list_multipart_uploads_with_delimiter: {
|
||||||
|
Args: {
|
||||||
|
bucket_id: string
|
||||||
|
prefix_param: string
|
||||||
|
delimiter_param: string
|
||||||
|
max_keys?: number
|
||||||
|
next_key_token?: string
|
||||||
|
next_upload_token?: string
|
||||||
|
}
|
||||||
|
Returns: {
|
||||||
|
key: string
|
||||||
|
id: string
|
||||||
|
created_at: string
|
||||||
|
}[]
|
||||||
|
}
|
||||||
|
list_objects_with_delimiter: {
|
||||||
|
Args: {
|
||||||
|
bucket_id: string
|
||||||
|
prefix_param: string
|
||||||
|
delimiter_param: string
|
||||||
|
max_keys?: number
|
||||||
|
start_after?: string
|
||||||
|
next_token?: string
|
||||||
|
}
|
||||||
|
Returns: {
|
||||||
|
name: string
|
||||||
|
id: string
|
||||||
|
metadata: Json
|
||||||
|
updated_at: string
|
||||||
|
}[]
|
||||||
|
}
|
||||||
|
operation: {
|
||||||
|
Args: Record<PropertyKey, never>
|
||||||
|
Returns: string
|
||||||
|
}
|
||||||
|
search: {
|
||||||
|
Args: {
|
||||||
|
prefix: string
|
||||||
|
bucketname: string
|
||||||
|
limits?: number
|
||||||
|
levels?: number
|
||||||
|
offsets?: number
|
||||||
|
search?: string
|
||||||
|
sortcolumn?: string
|
||||||
|
sortorder?: string
|
||||||
|
}
|
||||||
|
Returns: {
|
||||||
|
name: string
|
||||||
|
id: string
|
||||||
|
updated_at: string
|
||||||
|
created_at: string
|
||||||
|
last_accessed_at: string
|
||||||
|
metadata: Json
|
||||||
|
}[]
|
||||||
|
}
|
||||||
|
}
|
||||||
Enums: {
|
Enums: {
|
||||||
[_ in never]: never
|
[_ in never]: never
|
||||||
}
|
}
|
||||||
@@ -141,3 +650,4 @@ export type Enums<
|
|||||||
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
|
: PublicEnumNameOrOptions extends keyof PublicSchema["Enums"]
|
||||||
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
||||||
: never
|
: never
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user