mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-28 19:41:25 -04:00
Update SQL schema
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
create
|
||||
or replace function public.to_jsonb (jsonb) returns jsonb language sql immutable parallel SAFE strict as $function$ select $1 $function$;
|
||||
|
||||
create
|
||||
or replace function public.ts_to_millis (ts timestamp without time zone) returns bigint language sql immutable parallel SAFE as $function$
|
||||
select extract(epoch from ts)::bigint * 1000
|
||||
$function$;
|
||||
|
||||
create
|
||||
or replace function public.ts_to_millis (ts timestamp with time zone) returns bigint language sql immutable parallel SAFE as $function$
|
||||
select (extract(epoch from ts) * 1000)::bigint
|
||||
$function$;
|
||||
-- create
|
||||
-- or replace function public.ts_to_millis (ts timestamp without time zone) returns bigint language sql immutable parallel SAFE as $function$
|
||||
-- select extract(epoch from ts)::bigint * 1000
|
||||
-- $function$;
|
||||
--
|
||||
-- create
|
||||
-- or replace function public.ts_to_millis (ts timestamp with time zone) returns bigint language sql immutable parallel SAFE as $function$
|
||||
-- select (extract(epoch from ts) * 1000)::bigint
|
||||
-- $function$;
|
||||
|
||||
create
|
||||
or replace function public.millis_to_ts (millis bigint) returns timestamp with time zone language sql immutable parallel SAFE as $function$
|
||||
|
||||
@@ -44,6 +44,99 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
compatibility_answers: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
explanation: string | null
|
||||
id: number
|
||||
importance: number
|
||||
multiple_choice: number
|
||||
pref_choices: number[]
|
||||
question_id: number
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
explanation?: string | null
|
||||
id?: number
|
||||
importance: number
|
||||
multiple_choice: number
|
||||
pref_choices: number[]
|
||||
question_id: number
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
explanation?: string | null
|
||||
id?: number
|
||||
importance?: number
|
||||
multiple_choice?: number
|
||||
pref_choices?: number[]
|
||||
question_id?: number
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
compatibility_answers_free: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
free_response: string | null
|
||||
id: number
|
||||
integer: number | null
|
||||
multiple_choice: number | null
|
||||
question_id: number
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
free_response?: string | null
|
||||
id?: number
|
||||
integer?: number | null
|
||||
multiple_choice?: number | null
|
||||
question_id: number
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
free_response?: string | null
|
||||
id?: number
|
||||
integer?: number | null
|
||||
multiple_choice?: number | null
|
||||
question_id?: number
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
compatibility_prompts: {
|
||||
Row: {
|
||||
answer_type: string
|
||||
created_time: string
|
||||
creator_id: string
|
||||
id: number
|
||||
importance_score: number
|
||||
multiple_choice_options: Json | null
|
||||
question: string
|
||||
}
|
||||
Insert: {
|
||||
answer_type?: string
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
id?: number
|
||||
importance_score?: number
|
||||
multiple_choice_options?: Json | null
|
||||
question: string
|
||||
}
|
||||
Update: {
|
||||
answer_type?: string
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
id?: number
|
||||
importance_score?: number
|
||||
multiple_choice_options?: Json | null
|
||||
question?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
contact: {
|
||||
Row: {
|
||||
content: Json | null
|
||||
@@ -70,186 +163,9 @@ export type Database = {
|
||||
isOneToOne: false
|
||||
referencedRelation: 'users'
|
||||
referencedColumns: ['id']
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
compatibility_answers_free: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
free_response: string | null
|
||||
id: number
|
||||
integer: number | null
|
||||
multiple_choice: number | null
|
||||
question_id: number
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
free_response?: string | null
|
||||
id?: never
|
||||
integer?: number | null
|
||||
multiple_choice?: number | null
|
||||
question_id: number
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
free_response?: string | null
|
||||
id?: never
|
||||
integer?: number | null
|
||||
multiple_choice?: number | null
|
||||
question_id?: number
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
compatibility_answers: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
explanation: string | null
|
||||
id: number
|
||||
importance: number
|
||||
multiple_choice: number
|
||||
pref_choices: number[]
|
||||
question_id: number
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
explanation?: string | null
|
||||
id?: never
|
||||
importance: number
|
||||
multiple_choice: number
|
||||
pref_choices: number[]
|
||||
question_id: number
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
explanation?: string | null
|
||||
id?: never
|
||||
importance?: number
|
||||
multiple_choice?: number
|
||||
pref_choices?: number[]
|
||||
question_id?: number
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
profile_likes: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
like_id: string
|
||||
target_id: string
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
like_id?: string
|
||||
target_id: string
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
like_id?: string
|
||||
target_id?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
compatibility_prompts: {
|
||||
Row: {
|
||||
answer_type: string
|
||||
created_time: string
|
||||
creator_id: string
|
||||
id: number
|
||||
importance_score: number
|
||||
multiple_choice_options: Json | null
|
||||
question: string
|
||||
}
|
||||
Insert: {
|
||||
answer_type?: string
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
id?: never
|
||||
importance_score?: number
|
||||
multiple_choice_options?: Json | null
|
||||
question: string
|
||||
}
|
||||
Update: {
|
||||
answer_type?: string
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
id?: never
|
||||
importance_score?: number
|
||||
multiple_choice_options?: Json | null
|
||||
question?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
profile_ships: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
ship_id: string
|
||||
target1_id: string
|
||||
target2_id: string
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
ship_id?: string
|
||||
target1_id: string
|
||||
target2_id: string
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
ship_id?: string
|
||||
target1_id?: string
|
||||
target2_id?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
profile_stars: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
star_id: string
|
||||
target_id: string
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
star_id?: string
|
||||
target_id: string
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
star_id?: string
|
||||
target_id?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
user_waitlist: {
|
||||
Row: {
|
||||
created_time: string
|
||||
email: string
|
||||
id: number
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
email: string
|
||||
id?: never
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
email?: string
|
||||
id?: never
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
private_user_message_channel_members: {
|
||||
Row: {
|
||||
channel_id: number
|
||||
@@ -285,7 +201,7 @@ export type Database = {
|
||||
isOneToOne: false
|
||||
referencedRelation: 'private_user_message_channels'
|
||||
referencedColumns: ['id']
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
private_user_message_channels: {
|
||||
@@ -344,7 +260,7 @@ export type Database = {
|
||||
isOneToOne: false
|
||||
referencedRelation: 'private_user_message_channels'
|
||||
referencedColumns: ['id']
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
private_user_seen_message_channels: {
|
||||
@@ -373,7 +289,7 @@ export type Database = {
|
||||
isOneToOne: false
|
||||
referencedRelation: 'private_user_message_channels'
|
||||
referencedColumns: ['id']
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
private_users: {
|
||||
@@ -430,13 +346,79 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
profile_likes: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
like_id: string
|
||||
target_id: string
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
like_id?: string
|
||||
target_id: string
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
like_id?: string
|
||||
target_id?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
profile_ships: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
ship_id: string
|
||||
target1_id: string
|
||||
target2_id: string
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
ship_id?: string
|
||||
target1_id: string
|
||||
target2_id: string
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
ship_id?: string
|
||||
target1_id?: string
|
||||
target2_id?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
profile_stars: {
|
||||
Row: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
star_id: string
|
||||
target_id: string
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
creator_id: string
|
||||
star_id?: string
|
||||
target_id: string
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
creator_id?: string
|
||||
star_id?: string
|
||||
target_id?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
profiles: {
|
||||
Row: {
|
||||
age: number | null
|
||||
bio: Json | null
|
||||
bio_length: number | null
|
||||
bio_text: string | null
|
||||
bio_tsv: unknown | null
|
||||
bio_tsv: unknown
|
||||
born_in_location: string | null
|
||||
city: string
|
||||
city_latitude: number | null
|
||||
@@ -445,6 +427,7 @@ export type Database = {
|
||||
company: string | null
|
||||
country: string | null
|
||||
created_time: string
|
||||
diet: string[] | null
|
||||
drinks_per_month: number | null
|
||||
education_level: string | null
|
||||
ethnicity: string[] | null
|
||||
@@ -454,7 +437,6 @@ export type Database = {
|
||||
height_in_inches: number | null
|
||||
id: number
|
||||
is_smoker: boolean | null
|
||||
diet: string[] | null
|
||||
last_modification_time: string
|
||||
looking_for_matches: boolean
|
||||
messaging_status: string
|
||||
@@ -475,7 +457,7 @@ export type Database = {
|
||||
twitter: string | null
|
||||
university: string | null
|
||||
user_id: string
|
||||
visibility: Database['public']['Enums']['profile_visibility']
|
||||
visibility: Database['public']['Enums']['lover_visibility']
|
||||
wants_kids_strength: number
|
||||
website: string | null
|
||||
}
|
||||
@@ -484,7 +466,7 @@ export type Database = {
|
||||
bio?: Json | null
|
||||
bio_length?: number | null
|
||||
bio_text?: string | null
|
||||
bio_tsv?: unknown | null
|
||||
bio_tsv?: unknown
|
||||
born_in_location?: string | null
|
||||
city: string
|
||||
city_latitude?: number | null
|
||||
@@ -493,6 +475,7 @@ export type Database = {
|
||||
company?: string | null
|
||||
country?: string | null
|
||||
created_time?: string
|
||||
diet?: string[] | null
|
||||
drinks_per_month?: number | null
|
||||
education_level?: string | null
|
||||
ethnicity?: string[] | null
|
||||
@@ -502,7 +485,6 @@ export type Database = {
|
||||
height_in_inches?: number | null
|
||||
id?: number
|
||||
is_smoker?: boolean | null
|
||||
diet?: string[] | null
|
||||
last_modification_time?: string
|
||||
looking_for_matches?: boolean
|
||||
messaging_status?: string
|
||||
@@ -523,7 +505,7 @@ export type Database = {
|
||||
twitter?: string | null
|
||||
university?: string | null
|
||||
user_id: string
|
||||
visibility?: Database['public']['Enums']['profile_visibility']
|
||||
visibility?: Database['public']['Enums']['lover_visibility']
|
||||
wants_kids_strength?: number
|
||||
website?: string | null
|
||||
}
|
||||
@@ -532,7 +514,7 @@ export type Database = {
|
||||
bio?: Json | null
|
||||
bio_length?: number | null
|
||||
bio_text?: string | null
|
||||
bio_tsv?: unknown | null
|
||||
bio_tsv?: unknown
|
||||
born_in_location?: string | null
|
||||
city?: string
|
||||
city_latitude?: number | null
|
||||
@@ -541,6 +523,7 @@ export type Database = {
|
||||
company?: string | null
|
||||
country?: string | null
|
||||
created_time?: string
|
||||
diet?: string[] | null
|
||||
drinks_per_month?: number | null
|
||||
education_level?: string | null
|
||||
ethnicity?: string[] | null
|
||||
@@ -550,7 +533,6 @@ export type Database = {
|
||||
height_in_inches?: number | null
|
||||
id?: number
|
||||
is_smoker?: boolean | null
|
||||
diet?: string[] | null
|
||||
last_modification_time?: string
|
||||
looking_for_matches?: boolean
|
||||
messaging_status?: string
|
||||
@@ -571,12 +553,44 @@ export type Database = {
|
||||
twitter?: string | null
|
||||
university?: string | null
|
||||
user_id?: string
|
||||
visibility?: Database['public']['Enums']['profile_visibility']
|
||||
visibility?: Database['public']['Enums']['lover_visibility']
|
||||
wants_kids_strength?: number
|
||||
website?: string | null
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
push_subscriptions: {
|
||||
Row: {
|
||||
created_at: string | null
|
||||
endpoint: string
|
||||
id: number
|
||||
keys: Json
|
||||
user_id: string | null
|
||||
}
|
||||
Insert: {
|
||||
created_at?: string | null
|
||||
endpoint: string
|
||||
id?: number
|
||||
keys: Json
|
||||
user_id?: string | null
|
||||
}
|
||||
Update: {
|
||||
created_at?: string | null
|
||||
endpoint?: string
|
||||
id?: number
|
||||
keys?: Json
|
||||
user_id?: string | null
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: 'push_subscriptions_user_id_fkey'
|
||||
columns: ['user_id']
|
||||
isOneToOne: false
|
||||
referencedRelation: 'users'
|
||||
referencedColumns: ['id']
|
||||
},
|
||||
]
|
||||
}
|
||||
reports: {
|
||||
Row: {
|
||||
content_id: string
|
||||
@@ -625,7 +639,7 @@ export type Database = {
|
||||
isOneToOne: false
|
||||
referencedRelation: 'users'
|
||||
referencedColumns: ['id']
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
user_activity: {
|
||||
@@ -648,7 +662,7 @@ export type Database = {
|
||||
isOneToOne: true
|
||||
referencedRelation: 'users'
|
||||
referencedColumns: ['id']
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
user_events: {
|
||||
@@ -702,13 +716,31 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
user_waitlist: {
|
||||
Row: {
|
||||
created_time: string
|
||||
email: string
|
||||
id: number
|
||||
}
|
||||
Insert: {
|
||||
created_time?: string
|
||||
email: string
|
||||
id?: number
|
||||
}
|
||||
Update: {
|
||||
created_time?: string
|
||||
email?: string
|
||||
id?: number
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
users: {
|
||||
Row: {
|
||||
created_time: string
|
||||
data: Json
|
||||
id: string
|
||||
name: string
|
||||
name_username_vector: unknown | null
|
||||
name_username_vector: unknown
|
||||
username: string
|
||||
}
|
||||
Insert: {
|
||||
@@ -716,7 +748,7 @@ export type Database = {
|
||||
data: Json
|
||||
id?: string
|
||||
name: string
|
||||
name_username_vector?: unknown | null
|
||||
name_username_vector?: unknown
|
||||
username: string
|
||||
}
|
||||
Update: {
|
||||
@@ -724,7 +756,7 @@ export type Database = {
|
||||
data?: Json
|
||||
id?: string
|
||||
name?: string
|
||||
name_username_vector?: unknown | null
|
||||
name_username_vector?: unknown
|
||||
username?: string
|
||||
}
|
||||
Relationships: []
|
||||
@@ -768,7 +800,7 @@ export type Database = {
|
||||
isOneToOne: false
|
||||
referencedRelation: 'votes'
|
||||
referencedColumns: ['id']
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
votes: {
|
||||
@@ -803,7 +835,7 @@ export type Database = {
|
||||
isOneToOne: false
|
||||
referencedRelation: 'users'
|
||||
referencedColumns: ['id']
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -819,24 +851,22 @@ export type Database = {
|
||||
Args: { channel_id: number; user_id: string }
|
||||
Returns: boolean
|
||||
}
|
||||
firebase_uid: {
|
||||
Args: Record<PropertyKey, never>
|
||||
Returns: string
|
||||
}
|
||||
get_average_rating: {
|
||||
Args: { user_id: string }
|
||||
Returns: number
|
||||
}
|
||||
get_compatibility_prompts_with_answer_count: {
|
||||
Args: Record<PropertyKey, never>
|
||||
firebase_uid: { Args: never; Returns: string }
|
||||
get_average_rating: { Args: { user_id: string }; Returns: number }
|
||||
get_compatibility_questions_with_answer_count: {
|
||||
Args: never
|
||||
Returns: Record<string, unknown>[]
|
||||
}
|
||||
get_compatibility_answers_and_profiles: {
|
||||
get_love_question_answers_and_lovers: {
|
||||
Args: { p_question_id: number }
|
||||
Returns: Record<string, unknown>[]
|
||||
}
|
||||
get_love_question_answers_and_profiles: {
|
||||
Args: { p_question_id: number }
|
||||
Returns: Record<string, unknown>[]
|
||||
}
|
||||
get_votes_with_results: {
|
||||
Args: Record<PropertyKey, never>
|
||||
Args: { order_by?: string }
|
||||
Returns: {
|
||||
created_time: string
|
||||
creator_id: string
|
||||
@@ -850,65 +880,21 @@ export type Database = {
|
||||
votes_for: number
|
||||
}[]
|
||||
}
|
||||
gtrgm_compress: {
|
||||
Args: { '': unknown }
|
||||
Returns: unknown
|
||||
}
|
||||
gtrgm_decompress: {
|
||||
Args: { '': unknown }
|
||||
Returns: unknown
|
||||
}
|
||||
gtrgm_in: {
|
||||
Args: { '': unknown }
|
||||
Returns: unknown
|
||||
}
|
||||
gtrgm_options: {
|
||||
Args: { '': unknown }
|
||||
Returns: undefined
|
||||
}
|
||||
gtrgm_out: {
|
||||
Args: { '': unknown }
|
||||
Returns: unknown
|
||||
}
|
||||
is_admin: {
|
||||
Args: Record<PropertyKey, never> | { user_id: string }
|
||||
Returns: boolean
|
||||
}
|
||||
is_admin:
|
||||
| { Args: { user_id: string }; Returns: boolean }
|
||||
| { Args: never; Returns: boolean }
|
||||
millis_interval: {
|
||||
Args: { end_millis: number; start_millis: number }
|
||||
Returns: unknown
|
||||
}
|
||||
millis_to_ts: {
|
||||
Args: { millis: number }
|
||||
Returns: string
|
||||
}
|
||||
random_alphanumeric: {
|
||||
Args: { length: number }
|
||||
Returns: string
|
||||
}
|
||||
set_limit: {
|
||||
Args: { '': number }
|
||||
Returns: number
|
||||
}
|
||||
show_limit: {
|
||||
Args: Record<PropertyKey, never>
|
||||
Returns: number
|
||||
}
|
||||
show_trgm: {
|
||||
Args: { '': string }
|
||||
Returns: string[]
|
||||
}
|
||||
to_jsonb: {
|
||||
Args: { '': Json }
|
||||
Returns: Json
|
||||
}
|
||||
ts_to_millis: {
|
||||
Args: { ts: string } | { ts: string }
|
||||
Returns: number
|
||||
}
|
||||
millis_to_ts: { Args: { millis: number }; Returns: string }
|
||||
random_alphanumeric: { Args: { length: number }; Returns: string }
|
||||
show_limit: { Args: never; Returns: number }
|
||||
show_trgm: { Args: { '': string }; Returns: string[] }
|
||||
to_jsonb: { Args: { '': Json }; Returns: Json }
|
||||
}
|
||||
Enums: {
|
||||
profile_visibility: 'public' | 'member'
|
||||
lover_visibility: 'public' | 'member'
|
||||
}
|
||||
CompositeTypes: {
|
||||
[_ in never]: never
|
||||
@@ -929,7 +915,7 @@ export type Tables<
|
||||
}
|
||||
? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] &
|
||||
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])
|
||||
: never = never
|
||||
: never = never,
|
||||
> = DefaultSchemaTableNameOrOptions extends {
|
||||
schema: keyof DatabaseWithoutInternals
|
||||
}
|
||||
@@ -940,14 +926,14 @@ export type Tables<
|
||||
? R
|
||||
: never
|
||||
: DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] &
|
||||
DefaultSchema['Views'])
|
||||
? (DefaultSchema['Tables'] &
|
||||
DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
|
||||
Row: infer R
|
||||
}
|
||||
? R
|
||||
DefaultSchema['Views'])
|
||||
? (DefaultSchema['Tables'] &
|
||||
DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
|
||||
Row: infer R
|
||||
}
|
||||
? R
|
||||
: never
|
||||
: never
|
||||
: never
|
||||
|
||||
export type TablesInsert<
|
||||
DefaultSchemaTableNameOrOptions extends
|
||||
@@ -957,7 +943,7 @@ export type TablesInsert<
|
||||
schema: keyof DatabaseWithoutInternals
|
||||
}
|
||||
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
|
||||
: never = never
|
||||
: never = never,
|
||||
> = DefaultSchemaTableNameOrOptions extends {
|
||||
schema: keyof DatabaseWithoutInternals
|
||||
}
|
||||
@@ -967,12 +953,12 @@ export type TablesInsert<
|
||||
? I
|
||||
: never
|
||||
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables']
|
||||
? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
||||
Insert: infer I
|
||||
}
|
||||
? I
|
||||
? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
||||
Insert: infer I
|
||||
}
|
||||
? I
|
||||
: never
|
||||
: never
|
||||
: never
|
||||
|
||||
export type TablesUpdate<
|
||||
DefaultSchemaTableNameOrOptions extends
|
||||
@@ -982,7 +968,7 @@ export type TablesUpdate<
|
||||
schema: keyof DatabaseWithoutInternals
|
||||
}
|
||||
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
|
||||
: never = never
|
||||
: never = never,
|
||||
> = DefaultSchemaTableNameOrOptions extends {
|
||||
schema: keyof DatabaseWithoutInternals
|
||||
}
|
||||
@@ -992,12 +978,12 @@ export type TablesUpdate<
|
||||
? U
|
||||
: never
|
||||
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables']
|
||||
? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
||||
Update: infer U
|
||||
}
|
||||
? U
|
||||
? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
||||
Update: infer U
|
||||
}
|
||||
? U
|
||||
: never
|
||||
: never
|
||||
: never
|
||||
|
||||
export type Enums<
|
||||
DefaultSchemaEnumNameOrOptions extends
|
||||
@@ -1007,14 +993,14 @@ export type Enums<
|
||||
schema: keyof DatabaseWithoutInternals
|
||||
}
|
||||
? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums']
|
||||
: never = never
|
||||
: never = never,
|
||||
> = DefaultSchemaEnumNameOrOptions extends {
|
||||
schema: keyof DatabaseWithoutInternals
|
||||
}
|
||||
? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums'][EnumName]
|
||||
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema['Enums']
|
||||
? DefaultSchema['Enums'][DefaultSchemaEnumNameOrOptions]
|
||||
: never
|
||||
? DefaultSchema['Enums'][DefaultSchemaEnumNameOrOptions]
|
||||
: never
|
||||
|
||||
export type CompositeTypes<
|
||||
PublicCompositeTypeNameOrOptions extends
|
||||
@@ -1024,19 +1010,19 @@ export type CompositeTypes<
|
||||
schema: keyof DatabaseWithoutInternals
|
||||
}
|
||||
? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes']
|
||||
: never = never
|
||||
: never = never,
|
||||
> = PublicCompositeTypeNameOrOptions extends {
|
||||
schema: keyof DatabaseWithoutInternals
|
||||
}
|
||||
? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes'][CompositeTypeName]
|
||||
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema['CompositeTypes']
|
||||
? DefaultSchema['CompositeTypes'][PublicCompositeTypeNameOrOptions]
|
||||
: never
|
||||
? DefaultSchema['CompositeTypes'][PublicCompositeTypeNameOrOptions]
|
||||
: never
|
||||
|
||||
export const Constants = {
|
||||
public: {
|
||||
Enums: {
|
||||
profile_visibility: ['public', 'member'],
|
||||
lover_visibility: ['public', 'member'],
|
||||
},
|
||||
},
|
||||
} as const
|
||||
|
||||
@@ -45,10 +45,12 @@
|
||||
"eslint-plugin-lodash": "^7.4.0",
|
||||
"eslint-plugin-unused-imports": "4.1.4",
|
||||
"nodemon": "2.0.20",
|
||||
"prettier": "2.8.4",
|
||||
"ts-node": "10.9.1",
|
||||
"tsc-alias": "1.8.2",
|
||||
"tsconfig-paths": "4.2.0",
|
||||
"prettier": "3.6.2",
|
||||
"prettier-plugin-sql": "0.19.2",
|
||||
"prettier-plugin-tailwindcss": "^0.2.1",
|
||||
"typescript": "5.5.4"
|
||||
},
|
||||
"resolutions": {
|
||||
|
||||
@@ -82,8 +82,6 @@
|
||||
"eslint-config-prettier": "9.0.0",
|
||||
"next-sitemap": "^2.5.14",
|
||||
"postcss": "8.4.31",
|
||||
"prettier-plugin-sql": "0.14.0",
|
||||
"prettier-plugin-tailwindcss": "^0.2.1",
|
||||
"tailwindcss": "3.3.3",
|
||||
"tsc-files": "1.1.3"
|
||||
},
|
||||
|
||||
65
yarn.lock
65
yarn.lock
@@ -3605,6 +3605,11 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901"
|
||||
integrity sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==
|
||||
|
||||
"@types/pegjs@^0.10.0":
|
||||
version "0.10.6"
|
||||
resolved "https://registry.yarnpkg.com/@types/pegjs/-/pegjs-0.10.6.tgz#bc20fc4809fed4cddab8d0dbee0e568803741a82"
|
||||
integrity sha512-eLYXDbZWXh2uxf+w8sXS8d6KSoXTswfps6fvCUuVAGN8eRpfe7h9eSRydxiSJvo9Bf+GzifsDOr9TMQlmJdmkw==
|
||||
|
||||
"@types/phoenix@^1.5.4":
|
||||
version "1.6.4"
|
||||
resolved "https://registry.yarnpkg.com/@types/phoenix/-/phoenix-1.6.4.tgz#cceac93a827555473ad38057d1df7d06eef1ed71"
|
||||
@@ -6371,11 +6376,6 @@ get-proto@^1.0.1:
|
||||
dunder-proto "^1.0.1"
|
||||
es-object-atoms "^1.0.0"
|
||||
|
||||
get-stdin@=8.0.0:
|
||||
version "8.0.0"
|
||||
resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53"
|
||||
integrity sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==
|
||||
|
||||
get-stream@^6.0.0:
|
||||
version "6.0.1"
|
||||
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
|
||||
@@ -7790,6 +7790,11 @@ jsonwebtoken@^9.0.0:
|
||||
ms "^2.1.1"
|
||||
semver "^7.5.4"
|
||||
|
||||
jsox@^1.2.123:
|
||||
version "1.2.123"
|
||||
resolved "https://registry.yarnpkg.com/jsox/-/jsox-1.2.123.tgz#cf497367f92b2d744963e15c4435c9e20eee02ea"
|
||||
integrity sha512-LYordXJ/0Q4G8pUE1Pvh4fkfGvZY7lRe4WIJKl0wr0rtFDVw9lcdNW95GH0DceJ6E9xh41zJNW0vreEz7xOxCw==
|
||||
|
||||
"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.5:
|
||||
version "3.3.5"
|
||||
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz#4766bd05a8e2a11af222becd19e15575e52a853a"
|
||||
@@ -8778,11 +8783,12 @@ node-releases@^2.0.14:
|
||||
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b"
|
||||
integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==
|
||||
|
||||
node-sql-parser@^4.6.6:
|
||||
version "4.18.0"
|
||||
resolved "https://registry.yarnpkg.com/node-sql-parser/-/node-sql-parser-4.18.0.tgz#516b6e633c55c5abbba1ca588ab372db81ae9318"
|
||||
integrity sha512-2YEOR5qlI1zUFbGMLKNfsrR5JUvFg9LxIRVE+xJe962pfVLH0rnItqLzv96XVs1Y1UIR8FxsXAuvX/lYAWZ2BQ==
|
||||
node-sql-parser@^5.3.10:
|
||||
version "5.3.13"
|
||||
resolved "https://registry.yarnpkg.com/node-sql-parser/-/node-sql-parser-5.3.13.tgz#a955e2309608cdab4521925d7f6488aa8ec69182"
|
||||
integrity sha512-heyWv3lLjKHpcBDMUSR+R0DohRYZTYq+Ro3hJ4m9Ia8ccdKbL5UijIaWr2L4co+bmmFuvBVZ4v23QW2PqvBFAA==
|
||||
dependencies:
|
||||
"@types/pegjs" "^0.10.0"
|
||||
big-integer "^1.6.48"
|
||||
|
||||
nodemon@2.0.20:
|
||||
@@ -9395,30 +9401,31 @@ prelude-ls@~1.1.2:
|
||||
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
|
||||
integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==
|
||||
|
||||
prettier-plugin-sql@0.14.0:
|
||||
version "0.14.0"
|
||||
resolved "https://registry.yarnpkg.com/prettier-plugin-sql/-/prettier-plugin-sql-0.14.0.tgz#dc7dc0b643431eded7f4e8ecad785dcaf8db0180"
|
||||
integrity sha512-dRgINgNd3ZhBDuO/+EFalJjSlAqNXvXv9XDtSCeMufXaP6O64HHLBo1Szo+l+cfvXFxwvkTSGrS+sjpEpSchNA==
|
||||
prettier-plugin-sql@0.19.2:
|
||||
version "0.19.2"
|
||||
resolved "https://registry.yarnpkg.com/prettier-plugin-sql/-/prettier-plugin-sql-0.19.2.tgz#27ffce6af0b1f8d1e270a1da598e0025e2b472ca"
|
||||
integrity sha512-DAu1Jcanpvs32OAOXsqaVXOpPs4nFLVkB3XwzRiZZVNL5/c+XdlNxWFMiMpMhYhmCG5BW3srK8mhikCOv5tPfg==
|
||||
dependencies:
|
||||
node-sql-parser "^4.6.6"
|
||||
sql-formatter "^12.2.0"
|
||||
tslib "^2.5.0"
|
||||
jsox "^1.2.123"
|
||||
node-sql-parser "^5.3.10"
|
||||
sql-formatter "^15.6.5"
|
||||
tslib "^2.8.1"
|
||||
|
||||
prettier-plugin-tailwindcss@^0.2.1:
|
||||
version "0.2.8"
|
||||
resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.2.8.tgz#e9c0356680331f909a86fefe8fc2b247c21e23a2"
|
||||
integrity sha512-KgPcEnJeIijlMjsA6WwYgRs5rh3/q76oInqtMXBA/EMcamrcYJpyhtRhyX1ayT9hnHlHTuO8sIifHF10WuSDKg==
|
||||
|
||||
prettier@2.8.4:
|
||||
version "2.8.4"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.4.tgz#34dd2595629bfbb79d344ac4a91ff948694463c3"
|
||||
integrity sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==
|
||||
|
||||
prettier@3.4.2:
|
||||
version "3.4.2"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.2.tgz#a5ce1fb522a588bf2b78ca44c6e6fe5aa5a2b13f"
|
||||
integrity sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==
|
||||
|
||||
prettier@3.6.2:
|
||||
version "3.6.2"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393"
|
||||
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
|
||||
|
||||
pretty-format@^27.0.2:
|
||||
version "27.5.1"
|
||||
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e"
|
||||
@@ -10565,13 +10572,12 @@ sprintf-js@~1.0.2:
|
||||
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
|
||||
integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==
|
||||
|
||||
sql-formatter@^12.2.0:
|
||||
version "12.2.4"
|
||||
resolved "https://registry.yarnpkg.com/sql-formatter/-/sql-formatter-12.2.4.tgz#1671b2a5c40a87414281e2483108a24f98e8a556"
|
||||
integrity sha512-Qj45LEHSfgrdYDOrAtIkR8SdS10SWcqCIM2WZwQwMKF2v9sM0K2dlThWPS7eYCUrhttZIrU1WwuIwHk7MjsWOw==
|
||||
sql-formatter@^15.6.5:
|
||||
version "15.6.10"
|
||||
resolved "https://registry.yarnpkg.com/sql-formatter/-/sql-formatter-15.6.10.tgz#90dcdc2759735d987e2af3758939e7559adb7256"
|
||||
integrity sha512-0bJOPQrRO/JkjQhiThVayq0hOKnI1tHI+2OTkmT7TGtc6kqS+V7kveeMzRW+RNQGxofmTmet9ILvztyuxv0cJQ==
|
||||
dependencies:
|
||||
argparse "^2.0.1"
|
||||
get-stdin "=8.0.0"
|
||||
nearley "^2.20.1"
|
||||
|
||||
stability-client@1.6.1:
|
||||
@@ -11148,11 +11154,16 @@ tsconfig-paths@^3.15.0:
|
||||
minimist "^1.2.6"
|
||||
strip-bom "^3.0.0"
|
||||
|
||||
tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0, tslib@^2.5.0:
|
||||
tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0:
|
||||
version "2.6.2"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
|
||||
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
|
||||
|
||||
tslib@^2.8.1:
|
||||
version "2.8.1"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f"
|
||||
integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==
|
||||
|
||||
twitter-api-v2@1.15.0:
|
||||
version "1.15.0"
|
||||
resolved "https://registry.yarnpkg.com/twitter-api-v2/-/twitter-api-v2-1.15.0.tgz#ab8ff0f50158ac8d7897777b70ec39087d950f40"
|
||||
|
||||
Reference in New Issue
Block a user