map history

This commit is contained in:
Robin Appelman 2025-04-18 19:06:39 +02:00
commit d4311dc9df
10 changed files with 377 additions and 19 deletions

View file

@ -0,0 +1,25 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO player_honors (\n steam_id, team_id, season, division, format\n ) VALUES ($1, $2, $3, $4, $5)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8",
"Int4",
"Int2",
"Varchar",
{
"Custom": {
"name": "game_mode",
"kind": {
"Enum": ["highlander", "eights", "sixes", "fours", "ultiduo"]
}
}
}
]
},
"nullable": []
},
"hash": "104cec686e47c560a136e7ac479fc6a301ae08c7b339e18dda446d3a0990f655"
}

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "select steam_id as max from players order by steam_id desc limit 1;",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "max",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [false]
},
"hash": "133b2606adb67687107f717ec04114683e8ad6d6e9bb3177561971f0f12335f3"
}

View file

@ -0,0 +1,42 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO players (\n steam_id, name, avatar, favorite_classes, country\n ) VALUES ($1, $2, $3, $4, $5)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8",
"Varchar",
"Varchar",
{
"Custom": {
"name": "player_class[]",
"kind": {
"Array": {
"Custom": {
"name": "player_class",
"kind": {
"Enum": [
"scout",
"soldier",
"pyro",
"demoman",
"engineer",
"heavy",
"medic",
"sniper",
"spy"
]
}
}
}
}
}
},
"Varchar"
]
},
"nullable": []
},
"hash": "2df08faad317dd3f037d2fde18794a1a3b1c7b154118f3fca1f26ae2e3f9381c"
}

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "select distinct steam_id from membership_history where steam_id > $1 order by steam_id asc",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "steam_id",
"type_info": "Int8"
}
],
"parameters": {
"Left": ["Int8"]
},
"nullable": [false]
},
"hash": "d06507f78e0ac005f9e978816ffea6441d19232d08b3205993ee76b86c3e558b"
}