Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated sql file #46

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/sql/schema.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE TABLE maps (id BIGINT AUTO_INCREMENT, match_id BIGINT NOT NULL, map_name VARCHAR(50), score_1 BIGINT, score_2 BIGINT, current_side VARCHAR(255), status MEDIUMINT, maps_for VARCHAR(255), nb_ot BIGINT, identifier_id BIGINT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX match_id_idx (match_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE maps_score (id BIGINT AUTO_INCREMENT, map_id BIGINT NOT NULL, type_score VARCHAR(255), score1_side1 BIGINT, score1_side2 BIGINT, score2_side1 BIGINT, score2_side2 BIGINT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX map_id_idx (map_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE matchs (id BIGINT AUTO_INCREMENT, ip VARCHAR(50), server_id BIGINT, season_id BIGINT, team_a BIGINT, team_a_flag VARCHAR(2), team_a_name VARCHAR(25), team_b BIGINT, team_b_flag VARCHAR(2), team_b_name VARCHAR(25), status SMALLINT, score_a BIGINT, score_b BIGINT, max_round MEDIUMINT NOT NULL, rules VARCHAR(200) NOT NULL, overtime_startmoney BIGINT, overtime_max_round MEDIUMINT, config_full_score TINYINT(1), config_ot TINYINT(1), config_streamer TINYINT(1), config_knife_round TINYINT(1), config_switch_auto TINYINT(1), config_auto_change_password TINYINT(1), config_password VARCHAR(50), config_heatmap TINYINT(1), config_authkey VARCHAR(200), enable TINYINT(1), map_selection_mode VARCHAR(255), ingame_enable TINYINT(1), current_map BIGINT, force_zoom_match TINYINT(1), tv_record_file VARCHAR(255), identifier_id BIGINT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX server_id_idx (server_id), INDEX team_a_idx (team_a), INDEX team_b_idx (team_b), INDEX current_map_idx (current_map), INDEX season_id_idx (season_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE matches (id BIGINT AUTO_INCREMENT, ip VARCHAR(50), server_id BIGINT, season_id BIGINT, team_a BIGINT, team_a_flag VARCHAR(2), team_a_name VARCHAR(25), team_b BIGINT, team_b_flag VARCHAR(2), team_b_name VARCHAR(25), status SMALLINT, score_a BIGINT, score_b BIGINT, max_round MEDIUMINT NOT NULL, rules VARCHAR(200) NOT NULL, overtime_startmoney BIGINT, overtime_max_round MEDIUMINT, config_full_score TINYINT(1), config_ot TINYINT(1), config_streamer TINYINT(1), config_knife_round TINYINT(1), config_switch_auto TINYINT(1), config_auto_change_password TINYINT(1), config_password VARCHAR(50), config_heatmap TINYINT(1), config_authkey VARCHAR(200), enable TINYINT(1), map_selection_mode VARCHAR(255), ingame_enable TINYINT(1), current_map BIGINT, force_zoom_match TINYINT(1), tv_record_file VARCHAR(255), identifier_id BIGINT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX server_id_idx (server_id), INDEX team_a_idx (team_a), INDEX team_b_idx (team_b), INDEX current_map_idx (current_map), INDEX season_id_idx (season_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE player_kill (id BIGINT AUTO_INCREMENT, match_id BIGINT NOT NULL, map_id BIGINT NOT NULL, killer_name VARCHAR(100), killer_id BIGINT, killer_team VARCHAR(20), killed_name VARCHAR(100), killed_id BIGINT, killed_team VARCHAR(20), weapon VARCHAR(100), headshot TINYINT(1), round_id BIGINT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX match_id_idx (match_id), INDEX map_id_idx (map_id), INDEX killer_id_idx (killer_id), INDEX killed_id_idx (killed_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE players (id BIGINT AUTO_INCREMENT, match_id BIGINT NOT NULL, map_id BIGINT NOT NULL, player_key VARCHAR(255), team VARCHAR(255) DEFAULT 'other', ip VARCHAR(255), steamid VARCHAR(255), first_side VARCHAR(255), current_side VARCHAR(255), pseudo VARCHAR(255), nb_kill BIGINT DEFAULT 0, assist BIGINT DEFAULT 0, death BIGINT DEFAULT 0, point BIGINT DEFAULT 0, hs BIGINT DEFAULT 0, defuse BIGINT DEFAULT 0, bombe BIGINT DEFAULT 0, tk BIGINT DEFAULT 0, nb1 BIGINT DEFAULT 0, nb2 BIGINT DEFAULT 0, nb3 BIGINT DEFAULT 0, nb4 BIGINT DEFAULT 0, nb5 BIGINT DEFAULT 0, nb1kill BIGINT DEFAULT 0, nb2kill BIGINT DEFAULT 0, nb3kill BIGINT DEFAULT 0, nb4kill BIGINT DEFAULT 0, nb5kill BIGINT DEFAULT 0, pluskill BIGINT DEFAULT 0, firstkill BIGINT DEFAULT 0, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX match_id_idx (match_id), INDEX map_id_idx (map_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE players_heatmap (id BIGINT AUTO_INCREMENT, match_id BIGINT NOT NULL, map_id BIGINT NOT NULL, event_name VARCHAR(50), event_x DOUBLE(18, 2), event_y DOUBLE(18, 2), event_z DOUBLE(18, 2), player_name VARCHAR(255), player_id BIGINT, player_team VARCHAR(20), attacker_x DOUBLE(18, 2), attacker_y DOUBLE(18, 2), attacker_z DOUBLE(18, 2), attacker_name VARCHAR(255), attacker_id BIGINT, attacker_team VARCHAR(20), round_id BIGINT, round_time BIGINT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX match_id_idx (match_id), INDEX map_id_idx (map_id), INDEX player_id_idx (player_id), INDEX attacker_id_idx (attacker_id), PRIMARY KEY(id)) ENGINE = INNODB;
Expand Down