paper-dynasty-website/types/supabase.d.ts
Cal Corum 2c0eeb96c3 - Implemented discord authentication
- Added script to fetch typescript definitions for the supabase database
2025-05-07 23:04:16 -05:00

578 lines
17 KiB
TypeScript

export type Json =
| string
| number
| boolean
| null
| { [key: string]: Json | undefined }
| Json[];
export type Database = {
public: {
Tables: {
cardsets: {
Row: {
created_at: string;
description: string | null;
for_purchase: boolean;
id: number;
in_packs: boolean;
name: string;
ranked_legal: boolean;
total_cards: number | null;
};
Insert: {
created_at?: string;
description?: string | null;
for_purchase?: boolean;
id?: number;
in_packs?: boolean;
name: string;
ranked_legal?: boolean;
total_cards?: number | null;
};
Update: {
created_at?: string;
description?: string | null;
for_purchase?: boolean;
id?: number;
in_packs?: boolean;
name?: string;
ranked_legal?: boolean;
total_cards?: number | null;
};
Relationships: [];
};
mlb_player: {
Row: {
first_name: string | null;
id: number;
key_bbref: string | null;
key_fangraphs: number | null;
key_mlbam: number | null;
key_retro: string | null;
last_name: string | null;
offense_col: number | null;
};
Insert: {
first_name?: string | null;
id?: number;
key_bbref?: string | null;
key_fangraphs?: number | null;
key_mlbam?: number | null;
key_retro?: string | null;
last_name?: string | null;
offense_col?: number | null;
};
Update: {
first_name?: string | null;
id?: number;
key_bbref?: string | null;
key_fangraphs?: number | null;
key_mlbam?: number | null;
key_retro?: string | null;
last_name?: string | null;
offense_col?: number | null;
};
Relationships: [];
};
players: {
Row: {
bbref_id: string | null;
cardset_id: number;
cost: number;
created_at: string;
description: string;
fangr_id: string | null;
franchise: Database["public"]["Enums"]["franchise"] | null;
headshot: string | null;
id: number;
image: string;
image2: string | null;
mlbclub: Database["public"]["Enums"]["franchise"] | null;
mlbplayer_id: number | null;
name: string;
positions: string[] | null;
quantity: number;
rarity_id: number;
set_num: number | null;
strat_code: string | null;
vanity_card: string | null;
};
Insert: {
bbref_id?: string | null;
cardset_id: number;
cost: number;
created_at?: string;
description: string;
fangr_id?: string | null;
franchise?: Database["public"]["Enums"]["franchise"] | null;
headshot?: string | null;
id?: number;
image: string;
image2?: string | null;
mlbclub?: Database["public"]["Enums"]["franchise"] | null;
mlbplayer_id?: number | null;
name: string;
positions?: string[] | null;
quantity?: number;
rarity_id: number;
set_num?: number | null;
strat_code?: string | null;
vanity_card?: string | null;
};
Update: {
bbref_id?: string | null;
cardset_id?: number;
cost?: number;
created_at?: string;
description?: string;
fangr_id?: string | null;
franchise?: Database["public"]["Enums"]["franchise"] | null;
headshot?: string | null;
id?: number;
image?: string;
image2?: string | null;
mlbclub?: Database["public"]["Enums"]["franchise"] | null;
mlbplayer_id?: number | null;
name?: string;
positions?: string[] | null;
quantity?: number;
rarity_id?: number;
set_num?: number | null;
strat_code?: string | null;
vanity_card?: string | null;
};
Relationships: [
{
foreignKeyName: "players_cardset_id_fkey";
columns: ["cardset_id"];
isOneToOne: false;
referencedRelation: "cardsets";
referencedColumns: ["id"];
},
{
foreignKeyName: "players_mlbplayer_id_fkey";
columns: ["mlbplayer_id"];
isOneToOne: false;
referencedRelation: "mlb_player";
referencedColumns: ["id"];
},
{
foreignKeyName: "players_rarity_id_fkey";
columns: ["rarity_id"];
isOneToOne: false;
referencedRelation: "rarity";
referencedColumns: ["id"];
},
];
};
profiles: {
Row: {
avatar_url: string | null;
created_at: string | null;
discord_id: string | null;
discord_username: string | null;
email: string | null;
id: string;
};
Insert: {
avatar_url?: string | null;
created_at?: string | null;
discord_id?: string | null;
discord_username?: string | null;
email?: string | null;
id: string;
};
Update: {
avatar_url?: string | null;
created_at?: string | null;
discord_id?: string | null;
discord_username?: string | null;
email?: string | null;
id?: string;
};
Relationships: [];
};
rarity: {
Row: {
color: string;
created_at: string;
id: number;
name: string;
value: number;
};
Insert: {
color: string;
created_at?: string;
id?: number;
name: string;
value: number;
};
Update: {
color?: string;
created_at?: string;
id?: number;
name?: string;
value?: number;
};
Relationships: [];
};
teams: {
Row: {
abbrev: string | null;
career: string | null;
collection_value: string | null;
color: string | null;
event_id: string | null;
gmid: number | null;
gmname: string | null;
gsheet: string | null;
has_guide: string | null;
id: number;
is_ai: number | null;
lname: string | null;
logo: string | null;
ranking: number | null;
season: number | null;
sname: string | null;
team_value: string | null;
wallet: number | null;
};
Insert: {
abbrev?: string | null;
career?: string | null;
collection_value?: string | null;
color?: string | null;
event_id?: string | null;
gmid?: number | null;
gmname?: string | null;
gsheet?: string | null;
has_guide?: string | null;
id: number;
is_ai?: number | null;
lname?: string | null;
logo?: string | null;
ranking?: number | null;
season?: number | null;
sname?: string | null;
team_value?: string | null;
wallet?: number | null;
};
Update: {
abbrev?: string | null;
career?: string | null;
collection_value?: string | null;
color?: string | null;
event_id?: string | null;
gmid?: number | null;
gmname?: string | null;
gsheet?: string | null;
has_guide?: string | null;
id?: number;
is_ai?: number | null;
lname?: string | null;
logo?: string | null;
ranking?: number | null;
season?: number | null;
sname?: string | null;
team_value?: string | null;
wallet?: number | null;
};
Relationships: [];
};
};
Views: {
random_player: {
Row: {
bbref_id: string | null;
cardset_id: number | null;
cost: number | null;
created_at: string | null;
description: string | null;
fangr_id: string | null;
franchise: Database["public"]["Enums"]["franchise"] | null;
headshot: string | null;
id: number | null;
image: string | null;
image2: string | null;
mlbclub: Database["public"]["Enums"]["franchise"] | null;
mlbplayer_id: number | null;
name: string | null;
positions: string[] | null;
quantity: number | null;
rarity_id: number | null;
set_num: number | null;
strat_code: string | null;
vanity_card: string | null;
};
Insert: {
bbref_id?: string | null;
cardset_id?: number | null;
cost?: number | null;
created_at?: string | null;
description?: string | null;
fangr_id?: string | null;
franchise?: Database["public"]["Enums"]["franchise"] | null;
headshot?: string | null;
id?: number | null;
image?: string | null;
image2?: string | null;
mlbclub?: Database["public"]["Enums"]["franchise"] | null;
mlbplayer_id?: number | null;
name?: string | null;
positions?: string[] | null;
quantity?: number | null;
rarity_id?: number | null;
set_num?: number | null;
strat_code?: string | null;
vanity_card?: string | null;
};
Update: {
bbref_id?: string | null;
cardset_id?: number | null;
cost?: number | null;
created_at?: string | null;
description?: string | null;
fangr_id?: string | null;
franchise?: Database["public"]["Enums"]["franchise"] | null;
headshot?: string | null;
id?: number | null;
image?: string | null;
image2?: string | null;
mlbclub?: Database["public"]["Enums"]["franchise"] | null;
mlbplayer_id?: number | null;
name?: string | null;
positions?: string[] | null;
quantity?: number | null;
rarity_id?: number | null;
set_num?: number | null;
strat_code?: string | null;
vanity_card?: string | null;
};
Relationships: [
{
foreignKeyName: "players_cardset_id_fkey";
columns: ["cardset_id"];
isOneToOne: false;
referencedRelation: "cardsets";
referencedColumns: ["id"];
},
{
foreignKeyName: "players_mlbplayer_id_fkey";
columns: ["mlbplayer_id"];
isOneToOne: false;
referencedRelation: "mlb_player";
referencedColumns: ["id"];
},
{
foreignKeyName: "players_rarity_id_fkey";
columns: ["rarity_id"];
isOneToOne: false;
referencedRelation: "rarity";
referencedColumns: ["id"];
},
];
};
};
Functions: {
[_ in never]: never;
};
Enums: {
franchise:
| "Arizona Diamondbacks"
| "Atlanta Braves"
| "Baltimore Orioles"
| "Boston Red Sox"
| "Chicago Cubs"
| "Chicago White Sox"
| "Cincinnati Reds"
| "Cleveland Guardians"
| "Colorado Rockies"
| "Detroit Tigers"
| "Houston Astros"
| "Kansas City Royals"
| "Los Angeles Angels"
| "Los Angeles Dodgers"
| "Miami Marlins"
| "Milwaukee Brewers"
| "Minnesota Twins"
| "New York Mets"
| "New York Yankees"
| "Oakland Athletics"
| "Philadelphia Phillies"
| "Pittsburgh Pirates"
| "San Diego Padres"
| "San Francisco Giants"
| "Seattle Mariners"
| "St Louis Cardinals"
| "Tampa Bay Rays"
| "Texas Rangers"
| "Toronto Blue Jays"
| "Washington Nationals"
| "Anaheim Angels"
| "Brilliant Stars"
| "Cleveland Indians"
| "Custom Ballplayers"
| "Junior All Stars"
| "Mario Super Sluggers"
| "Montreal Expos"
| "Tampa Bay Devil Rays";
};
CompositeTypes: {
[_ in never]: never;
};
};
};
type DefaultSchema = Database[Extract<keyof Database, "public">];
export type Tables<
DefaultSchemaTableNameOrOptions extends
| keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
| { schema: keyof Database },
TableName extends DefaultSchemaTableNameOrOptions extends {
schema: keyof Database;
}
? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
: never = never,
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
Row: infer R;
}
? R
: never
: DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
DefaultSchema["Views"])
? (DefaultSchema["Tables"] &
DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
Row: infer R;
}
? R
: never
: never;
export type TablesInsert<
DefaultSchemaTableNameOrOptions extends
| keyof DefaultSchema["Tables"]
| { schema: keyof Database },
TableName extends DefaultSchemaTableNameOrOptions extends {
schema: keyof Database;
}
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
: never = never,
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
Insert: infer I;
}
? I
: never
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
Insert: infer I;
}
? I
: never
: never;
export type TablesUpdate<
DefaultSchemaTableNameOrOptions extends
| keyof DefaultSchema["Tables"]
| { schema: keyof Database },
TableName extends DefaultSchemaTableNameOrOptions extends {
schema: keyof Database;
}
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
: never = never,
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
Update: infer U;
}
? U
: never
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
Update: infer U;
}
? U
: never
: never;
export type Enums<
DefaultSchemaEnumNameOrOptions extends
| keyof DefaultSchema["Enums"]
| { schema: keyof Database },
EnumName extends DefaultSchemaEnumNameOrOptions extends {
schema: keyof Database;
}
? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
: never = never,
> = DefaultSchemaEnumNameOrOptions extends { schema: keyof Database }
? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
: never;
export type CompositeTypes<
PublicCompositeTypeNameOrOptions extends
| keyof DefaultSchema["CompositeTypes"]
| { schema: keyof Database },
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
schema: keyof Database;
}
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
: never = never,
> = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
: never;
export const Constants = {
public: {
Enums: {
franchise: [
"Arizona Diamondbacks",
"Atlanta Braves",
"Baltimore Orioles",
"Boston Red Sox",
"Chicago Cubs",
"Chicago White Sox",
"Cincinnati Reds",
"Cleveland Guardians",
"Colorado Rockies",
"Detroit Tigers",
"Houston Astros",
"Kansas City Royals",
"Los Angeles Angels",
"Los Angeles Dodgers",
"Miami Marlins",
"Milwaukee Brewers",
"Minnesota Twins",
"New York Mets",
"New York Yankees",
"Oakland Athletics",
"Philadelphia Phillies",
"Pittsburgh Pirates",
"San Diego Padres",
"San Francisco Giants",
"Seattle Mariners",
"St Louis Cardinals",
"Tampa Bay Rays",
"Texas Rangers",
"Toronto Blue Jays",
"Washington Nationals",
"Anaheim Angels",
"Brilliant Stars",
"Cleveland Indians",
"Custom Ballplayers",
"Junior All Stars",
"Mario Super Sluggers",
"Montreal Expos",
"Tampa Bay Devil Rays",
],
},
},
} as const;