You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
account INTNOT NULL, --account username for reference to account table (identified by account_id)
97
-
first_nameVARCHAR(30),
98
-
middle_nameVARCHAR(30), --leaving these open bc some countries have different naming conventions (e.g. brazil can have many last names or only one name)
99
-
last_nameVARCHAR(30),
103
+
firstVARCHAR(30),
104
+
middleVARCHAR(30), --leaving these open bc some countries have different naming conventions (e.g. brazil can have many last names or only one name)
105
+
lastVARCHAR(30),
100
106
birth_country CHAR(3) NOT NULL, --country code for reference to country table
101
107
dob TIMESTAMP,
102
108
gender athlete_gender NOT NULL,
@@ -116,7 +122,7 @@ CREATE TABLE TEAM (
116
122
sport INTNOT NULL, --sport id for reference to sport table (identified by sport_id)
117
123
coach INTNOT NULL, --participant id for reference to participant table (identified by participant_id)
118
124
country CHAR(3) NOT NULL, --country code for reference to country,
119
-
gender athlete_gender,
125
+
gender team_gender,
120
126
eligible BOOLEAN,
121
127
CONSTRAINT team_pk PRIMARY KEY (team_id), --checks that the team id is unique and not null
122
128
CONSTRAINT team_olympiad_fk FOREIGN KEY (olympiad) REFERENCES OLYMPIAD(olympiad_num) ON DELETE CASCADE, --checks that the olympiad number is a valid olympiad number
0 commit comments