name
character varying(150)
NN
first_name
character varying(100)
NN
last_name
character varying(100)
NN
nationality
character varying(100)
first_name
character varying(100)
NN
last_name
character varying(100)
NN
nationality
character varying(100)
position
character varying(50)
standing_tournament_id_team_id_key
idx_standing_tournament_id
name
character varying(100)
NN
coach
character varying(100)
match_date
timestamp without time zone
NN
round
character varying(50)
match_player_stats_match_id_player_id_key
idx_match_player_match_id
idx_match_player_player_id
match_team_match_id_team_id_key
role
character varying(50)
match_referee_match_id_referee_id_key
idx_match_referee_match_id
idx_match_referee_referee_id
Documentation for project XDM - sport tournaments
Project
Name
XDM - sport tournaments
Report
Generated
11/7/2026 | 12:50:34 AM
tables
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
tournament_id
integer
Yes
match_date
timestamp without time zone
Yes
round
character varying
50
status
30
Yes
Indexes
idx_match_tournament_id
Column name
tournament_id
Using
btree
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
match_id
integer
Yes
player_id
integer
Yes
minutes_played
integer
goals
integer
assists
integer
yellow_cards
integer
red_cards
integer
Indexes
idx_match_player_match_id
Column name
match_id
Using
btree
idx_match_player_player_id
Column name
player_id
Using
btree
Keys
match_player_stats_pkey
Column in match_player_stats_pkey
id
match_player_stats_match_id_player_id_key
Column in match_player_stats_match_id_player_id_key
match_id
Column in match_player_stats_match_id_player_id_key
player_id
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
match_id
integer
Yes
referee_id
integer
Yes
role
character varying
50
Indexes
idx_match_referee_match_id
Column name
match_id
Using
btree
idx_match_referee_referee_id
Column name
referee_id
Using
btree
Keys
match_referee_pkey
Column in match_referee_pkey
id
match_referee_match_id_referee_id_key
Column in match_referee_match_id_referee_id_key
match_id
Column in match_referee_match_id_referee_id_key
referee_id
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
match_id
integer
Yes
team_id
integer
Yes
is_home
boolean
score
integer
Indexes
idx_match_team_match_id
Column name
match_id
Using
btree
idx_match_team_team_id
Column name
team_id
Using
btree
Keys
match_team_pkey
Column in match_team_pkey
id
match_team_match_id_team_id_key
Column in match_team_match_id_team_id_key
match_id
Column in match_team_match_id_team_id_key
team_id
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
first_name
character varying
100
Yes
last_name
character varying
100
Yes
date_of_birth
date
nationality
character varying
100
position
character varying
50
team_id
integer
Indexes
idx_player_team_id
Column name
team_id
Using
btree
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
first_name
character varying
100
Yes
last_name
character varying
100
Yes
nationality
character varying
100
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
tournament_id
integer
Yes
team_id
integer
Yes
played
integer
won
integer
drawn
integer
lost
integer
goals_for
integer
goals_against
integer
points
integer
Indexes
idx_standing_tournament_id
Column name
tournament_id
Using
btree
idx_standing_team_id
Column name
team_id
Using
btree
Keys
standing_pkey
Column in standing_pkey
id
standing_tournament_id_team_id_key
Column in standing_tournament_id_team_id_key
tournament_id
Column in standing_tournament_id_team_id_key
team_id
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
name
character varying
100
Yes
coach
character varying
100
founded_year
integer
Stores tournament metadata.
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
name
character varying
150
Yes
start_date
date
Yes
end_date
date
location
json
description
text
Keys
tournament_pkey
Column in tournament_pkey
id
relationships
Name
match_tournament_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in tournament
Column in match
tournament_pkey
id
tournament_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
match_player_stats_match_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in match
Column in match_player_stats
match_pkey
id
match_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
match_player_stats_player_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in player
Column in match_player_stats
player_pkey
id
player_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
match_referee_match_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in match
Column in match_referee
match_pkey
id
match_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
match_referee_referee_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in referee
Column in match_referee
referee_pkey
id
referee_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
match_team_match_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in match
Column in match_team
match_pkey
id
match_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
match_team_team_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in team
Column in match_team
team_pkey
id
team_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Optional
Key and columns
Key name
Column in team
Column in player
team_pkey
id
team_id
Properties
Rerefential integrity - parent delete
Set null
Referential integrity - parent update
No action
Name
standing_team_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in team
Column in standing
team_pkey
id
team_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
standing_tournament_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in tournament
Column in standing
tournament_pkey
id
tournament_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Lines
Line name
match_status-status