$ /Users/runner/runners/2.164.0/work/introspection-engine-output/introspection-engine-output/node_modules/.bin/prisma2 introspect --url mysql://prisma:qd58rcCywPRS4Stk@mysql127-divy.cg7tbvsdqlrs.eu-central-1.rds.amazonaws.com:3306/Basketball_men --print
datasource db {
provider = "mysql"
url = "mysql://prisma:qd58rcCywPRS4Stk@mysql127-divy.cg7tbvsdqlrs.eu-central-1.rds.amazonaws.com:3306/Basketball_men"
}
model awards_coaches {
award String?
id Int @default(autoincrement()) @id
lgID String?
note String?
coaches coaches? @map(["coachID", "year"]) @relation(references: [coachID, year])
@@index([coachID], name: "coachID")
@@index([coaches], name: "coachID_2")
@@index([coaches], name: "coachID_3")
@@index([year, coachID], name: "year")
@@index([year, coachID], name: "year_2")
@@index([year, coachID, lgID], name: "year_3")
}
model awards_players {
award String
lgID String?
note String?
pos String?
year Int
playerID players
@@id([playerID, year, award])
@@index([playerID], name: "playerID")
}
model coaches {
coachID String
lgID String?
lost Int?
post_losses Int?
post_wins Int?
stint Int
won Int?
teams teams @map(["tmID", "year"])
awards_coacheses awards_coaches[]
@@id([coachID, year, tmID, stint])
@@index([coachID], name: "coachID")
@@index([teams], name: "tmID")
@@index([teams], name: "tmID_2")
@@index([year, coachID], name: "year")
@@index([year, coachID, lgID], name: "year_2")
@@index([year, tmID], name: "year_3")
@@index([year, tmID], name: "year_4")
}
model draft {
draftFrom String?
draftOverall Int?
draftRound Int?
draftSelection Int?
firstName String?
id Int @default(0) @id
lastName String?
lgID String?
playerID String?
suffixName String?
teams teams? @map(["tmID", "draftYear"])
@@index([teams], name: "tmID")
}
model players {
birthCity String?
birthCountry String?
birthDate DateTime?
birthState String?
college String?
collegeOther String?
deathDate DateTime?
firstName String?
firstseason Int?
fullGivenName String?
height Float?
highSchool String?
hsCity String?
hsCountry String?
hsState String?
lastName String?
lastseason Int?
middleName String?
nameGiven String?
nameNick String?
nameSuffix String?
playerID String @id
pos String?
race String?
useFirst String?
weight Int?
awards_playerses awards_players[]
players_teamses players_teams[] @relation(references: [playerID])
player_allstars player_allstar[]
}
model players_teams {
assists Int?
blocks Int?
dRebounds Int?
fgAttempted Int?
fgMade Int?
ftAttempted Int?
ftMade Int?
GP Int?
GS Int?
id Int @default(autoincrement()) @id
lgID String?
minutes Int?
note String?
oRebounds Int?
PF Int?
points Int?
PostAssists Int?
PostBlocks Int?
PostdRebounds Int?
PostfgAttempted Int?
PostfgMade Int?
PostftAttempted Int?
PostftMade Int?
PostGP Int?
PostGS Int?
PostMinutes Int?
PostoRebounds Int?
PostPF Int?
PostPoints Int?
PostRebounds Int?
PostSteals Int?
PostthreeAttempted Int?
PostthreeMade Int?
PostTurnovers Int?
rebounds Int?
steals Int?
stint Int?
threeAttempted Int?
threeMade Int?
turnovers Int?
playerID players
teams teams? @map(["tmID", "year"])
@@index([fgAttempted], name: "fgAttempted")
@@index([fgAttempted], name: "fgAttempted_2")
@@index([playerID], name: "playerID")
@@index([teams], name: "tmID")
@@index([teams], name: "tmID_2")
@@index([teams], name: "tmID_3")
@@index([year, tmID], name: "year")
}
model player_allstar {
assists Int?
blocks Int?
conference String?
d_rebounds Int?
fg_attempted Int?
fg_made Int?
first_name String?
ft_attempted Int?
ft_made Int?
games_played Int?
last_name String?
league_id String?
minutes Int?
o_rebounds Int?
personal_fouls Int?
points Int?
rebounds Int?
season_id Int
steals Int?
three_attempted Int?
three_made Int?
turnovers Int?
playerID players
@@id([playerID, season_id])
@@index([playerID], name: "player_id")
}
model series_post {
id Int @default(autoincrement()) @id
L Int?
lgIDLoser String?
lgIDWinner String?
round String?
series String?
W Int?
teams teams? @map(["tmIDLoser", "year"]) @relation("series_post_tmIDLoser_yearToteams")
teams teams? @map(["tmIDWinner", "year"]) @relation("series_post_tmIDWinner_yearToteams")
@@index([teams], name: "tmIDLoser")
@@index([teams], name: "tmIDWinner")
}
model teams {
arena String?
attendance Int?
awayLost Int?
awayWon Int?
bbtmID String?
confID String?
confLoss Int?
confRank Int?
confWon Int?
divID String?
divLoss Int?
divWon Int?
d_3pa Int?
d_3pm Int?
d_asts Int?
d_blk Int?
d_dreb Int?
d_fga Int?
d_fgm Int?
d_fta Int?
d_ftm Int?
d_oreb Int?
d_pf Int?
d_pts Int?
d_reb Int?
d_stl Int?
d_tmRebound Int?
d_to Int?
franchID String?
games Int?
homeLost Int?
homeWon Int?
lgID String?
lost Int?
min Int?
name String?
neutLoss Int?
neutWon Int?
o_3pa Int?
o_3pm Int?
o_asts Int?
o_blk Int?
o_dreb Int?
o_fga Int?
o_fgm Int?
o_fta Int?
o_ftm Int?
o_oreb Int?
o_pf Int?
o_pts Int?
o_reb Int?
o_stl Int?
o_tmRebound Int?
o_to Int?
pace Int?
playoff String?
rank Int?
tmID String
won Int?
year Int
coacheses coaches[]
drafts draft[]
players_teamses players_teams[]
series_posts_series_post_tmIDLoser_yearToteams series_post[] @relation("series_post_tmIDLoser_yearToteams")
series_posts_series_post_tmIDWinner_yearToteams series_post[] @relation("series_post_tmIDWinner_yearToteams")
@@id([year, tmID])
@@index([tmID], name: "tmID")
@@index([tmID, year], name: "tmID_2")
}
It would be nice if you could still see these errors even with an invalid first line.
(The invalidity of the first line is also super easy to muss unfortunately as only the first character is highlighted)