-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dc1104
commit 8022e02
Showing
7 changed files
with
55 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
USE playerdata; | ||
|
||
CREATE TABLE Players ( | ||
id INT PRIMARY KEY AUTO_INCREMENT, | ||
name TEXT, | ||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
updated_at TIMESTAMP, | ||
possible_ban BOOLEAN, | ||
confirmed_ban BOOLEAN, | ||
confirmed_player BOOLEAN, | ||
label_id INTEGER, | ||
label_jagex INTEGER, | ||
ironman BOOLEAN, | ||
hardcore_ironman BOOLEAN, | ||
ultimate_ironman BOOLEAN, | ||
normalized_name TEXT | ||
); | ||
-- playerdata.Players definition-- playerdata.Labels definition | ||
|
||
CREATE TABLE Labels ( | ||
id int NOT NULL AUTO_INCREMENT, | ||
label varchar(50) NOT NULL, | ||
PRIMARY KEY (id), | ||
UNIQUE KEY Unique_label (label) USING BTREE | ||
) | ||
; | ||
UNIQUE KEY Unique_label (label) | ||
); | ||
|
||
INSERT INTO `Labels` (id, label) VALUES (0, "UNKOWN"); | ||
|
||
CREATE TABLE Players ( | ||
id int NOT NULL AUTO_INCREMENT, | ||
name text NOT NULL, | ||
created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at datetime DEFAULT NULL, | ||
possible_ban tinyint(1) NOT NULL DEFAULT '0', | ||
confirmed_ban tinyint(1) NOT NULL DEFAULT '0', | ||
confirmed_player tinyint(1) NOT NULL DEFAULT '0', | ||
label_id int NOT NULL DEFAULT '0', | ||
label_jagex int NOT NULL DEFAULT '0', | ||
ironman tinyint DEFAULT NULL, | ||
hardcore_ironman tinyint DEFAULT NULL, | ||
ultimate_ironman tinyint DEFAULT NULL, | ||
normalized_name text, | ||
PRIMARY KEY (id), | ||
UNIQUE KEY Unique_name (name (50)), | ||
KEY FK_label_id (label_id), | ||
KEY confirmed_ban_idx (confirmed_ban), | ||
KEY normal_name_index (normalized_name (50)), | ||
KEY Players_label_jagex_IDX (label_jagex), | ||
KEY Players_possible_ban_IDX (possible_ban, confirmed_ban), | ||
CONSTRAINT FK_label_id FOREIGN KEY (label_id) REFERENCES Labels (id) ON DELETE RESTRICT ON UPDATE RESTRICT | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pytest==8.3.2 | ||
pytest-asyncio==0.23.8 | ||
pytest-dependency==0.6.0 | ||
ruff==0.6.1 | ||
httpx==0.27.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters