1 | create table Clubs(
|
---|
2 | ClubID INT primary key,
|
---|
3 | ClubName VARCHAR(255) not null
|
---|
4 | );
|
---|
5 |
|
---|
6 | delete Clubs;
|
---|
7 |
|
---|
8 | create table Players(
|
---|
9 | PlayerID INT primary key,
|
---|
10 | PlayerName VARCHAR(255) not null,
|
---|
11 | clubID INT,
|
---|
12 | foreign key (clubID) references clubs(clubid)
|
---|
13 | );
|
---|
14 |
|
---|
15 | delete Players;
|
---|
16 |
|
---|
17 | create table stadiums(
|
---|
18 | stadiumID INT primary key,
|
---|
19 | stadiumName VARCHAR(255) not null,
|
---|
20 | clubID INT,
|
---|
21 | foreign key (clubID) references clubs(clubid)
|
---|
22 | );
|
---|
23 |
|
---|
24 | delete stadiums;
|
---|
25 |
|
---|
26 | create table injuries(
|
---|
27 | InjuryID INT primary key,
|
---|
28 | PlayerID INT,
|
---|
29 | InjuryType VARCHAR(255) not null,
|
---|
30 | InjuryDate DATE,
|
---|
31 | foreign key (PlayerID) references Players(Playerid)
|
---|
32 | );
|
---|
33 |
|
---|
34 | delete injuries;
|
---|
35 |
|
---|
36 | create table cards(
|
---|
37 | CardID INT primary key,
|
---|
38 | PlayerID INT,
|
---|
39 | CardType VARCHAR(255) not null,
|
---|
40 | CardDate DATE,
|
---|
41 | foreign key (PlayerID) references Players(Playerid)
|
---|
42 | );
|
---|
43 |
|
---|
44 | delete cards;
|
---|
45 |
|
---|
46 | create table Ratings(
|
---|
47 | ID INT primary key,
|
---|
48 | Rating1 INT,
|
---|
49 | Rating2 INT
|
---|
50 | );
|
---|
51 |
|
---|
52 | delete Ratings;
|
---|
53 |
|
---|
54 | create table Users(
|
---|
55 | ID INT primary key,
|
---|
56 | Username VARCHAR(255) not null,
|
---|
57 | Password1 VARCHAR(255) not null,
|
---|
58 | Email VARCHAR(255) not null
|
---|
59 | );
|
---|
60 |
|
---|
61 | delete Users;
|
---|
62 |
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 |
|
---|
67 |
|
---|